Chrome Dev Tools console says every page in my blog has link to http://maps.google.com [closed]

Its definitely being hooked into wp_head(), probably with wp_enqueue_scripts(). To find the culprit: First, deactivate your theme, use a twentyx theme instead. Then refresh the front end and check the source code again. If it’s gone: its your theme. To find where its being called from in your theme, search your theme directory /socrates4/ for … Read more

WordPress Fatal Errors [closed]

The error messages are pretty straightforward. First error: custom_permalinks_original_post_link() is not defined. It might be one defined by a plugin called “Custom Permalinks”. See https://github.com/GSA/custom-permalinks/blob/master/custom-permalinks.php. If you need that functionality, install/activate the plugin or refactor your code. Second error: It’s clear that the category-icons plugin is doing something wrong and not calling wpdb::prepare() properly. You … Read more

Sub Plugin deactivation when Parent Plugin deactivate

You can use detect_plugin_deactivation, function detect_plugin_deactivation( $plugin, $network_activation ) { if ($plugin==”parentplugin/parentplugin.php”) { deactivate_plugins(plugin_basename(__FILE__)); } } add_action( ‘deactivated_plugin’, ‘detect_plugin_deactivation’, 10, 2 ); Add this snippet in your plugin’s main file.