Change the number of plugins counted on wp-admin/plugins.php

The values haven’t any hook to change this. However it is easy to identify the counter via Javascript. You can change this with short lines of Javascript. Hook You should hook in this page hook of the plugin page admin_footer-plugins.php, like add_action( ‘admin_footer-plugins.php’, [ $this, ‘change_view_values’ ], 11 ); Function include javascript As example a … Read more

How to include files relative to a file’s directory

Plugin within a theme – sounds like something new. You might not find function in this context. Let’s create ours: <?php /** * Get My Plugin URL. * @return string. */ function wpse295740_get_plugin_url() { // http://example.com/wp-content/themes/my-theme/inc/my-plugin return get_template_directory_uri() .’/inc/my-plugin’; } /** * Get My Plugin Path. * @return string. */ function wpse295740_get_plugin_path() { // eg. … Read more

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