


Contact Form 7 Countries dropdown
This snippet will add a dropdown select of countries to your Contact 7 form. Just click to copy and then paste it in your form layout.

MainWP useful code snippets
White label your WPRocket: on child site in wp-config.php add – Enable SVG support in WordPress

Turn on WP debugging and log to file
Debug with a log file rather than displaying errors on screen // Enable WP_DEBUG mode define( ‘WP_DEBUG’, true ); // Enable Debug logging to the /wp-content/debug.log file define( ‘WP_DEBUG_LOG’, true ); // Disable display of errors and warnings define( ‘WP_DEBUG_DISPLAY’, false ); @ini_set( ‘display_errors’, 0 ); // Use dev versions of core JS and CSS…