WordPress & PHP Programmer

All posts by admin

Memory and time limits for wordpress

Using next code in wp-config.php file is possible to allow WordPress use more memory for its processes and increase the process performance time:

Wrap all items of array in quotes – PHP

If we have associative PHP array and its necessary print it in JavaScript array, we ca use next PHP code:


Call a PHP callback function with an array of parameters

If its necessary, for example in any PHP loop (foreach) using any defined logic call specialized function with arguments by that logic –  next code will do it:

Loop over the WP tables

global $wpdb; $wp_tables = $wpdb->tables();   Returns an array of WordPress tables.

Kill WordPress execution and display HTML message with error message

If its necessary to stop execution of PHP process in WordPress and show to the user any message with the reason of it, next function will do it: