Coding Bots

WordPress useful Plugins

This list contains most useful plugins for WordPress for various purposes, including development, debugging, management, writing, etc.

Best WordPress Plugins for Developers

Essential plugins for developers include:

These plugins might come in other categories too.

How to load all images from Photon (wordpress cdn for images)

To load the images on your site using the wordpress official cdn, add this code to your functions.php file:

function callback($buffer) { 
 $buffer = preg_replace("/(<img[^>]+?//)(.+)?([^>]+?)/", "$$2$3", $buffer);
 return $buffer; 
function buffer_start() { ob_start("callback"); } 
function buffer_end() { ob_end_flush(); }
add_action('after_setup_theme', 'buffer_start');
add_action('shutdown', 'buffer_end');

Debug WordPress

For debugging, add this code to wp-config.php (make sure that the same settings aren’t repeated after this code)

define ('WPLANG', '');
define('WP_DEBUG', false);
//define('WP_MEMORY_LIMIT', '1024M');
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
define('WP_DEBUG_DISPLAY', false);
define('ip_POST_REVISIONS', 5);
define('AUTOSAVE_INTERVAL', 300);
define('EMPTY_TRASH_DAYS', 3);

Anyway, we’ll be revising this list and improving plus expanding it too. The plugins will be explained further too with images.

Add your feedback or suggestions in the comments regarding the best WordPress plugins for various purposes!

Exit mobile version