PHP
Get Metadata from WordPress Video and Audio files
In addition to images, videos and audio files are other formats that we can upload to WordPress …
Read MoreUse PHP to remove certain characters or words from a string
The default PHP function str_replace(); is a useful tool if we want to remove certain characters …
Read MoreGet the current WordPress URL
In some cases, it may be necessary to get the current WordPress URL of where the user is current …
Read MoreCompress files with Gzip in PHP
If you already want to Gzip compress a file with PHP, the following function will help you. This …
Read MoreTrim a PHP string before the last special character
This small PHP function is helping us to get only a part of a value (string) by using a specific …
Read MoreGet the absolute File Path (Document Root-Path) in WordPress
Wenn man als Webentwickler mit Dateien arbeitet, die auf dem Server liegen und diese innerhalb e …
Read MoreCreate a connection to WordPress MySQL database in PHP
WordPress stores all the website data in a database and uses it, for example, if a certain conte …
Read MoreGet the installation URL of WordPress
In some cases, it can be very helpful to use the WordPress installation URL for a PHP validation …
Read MoreMinify or compress CSS in PHP
For developers of plugins or themes, it is important to provide the included CSS (stylesheets) f …
Read MoreMinify and compress Javascript files in PHP
Loading time is an important factor in search engine optimization and for the user experience. E …
Read More