Prevent a plugin from being automatically activated

You might want to add your own plugin to deactivate their plugin (silently). First open their main plugin file and see where the plugin hooks (or filters) in. Then unhook their plugin … and your’s as well. <?php /** Plugin Name: Deactivate other plugin */ add_action( ‘the_same_hook’, ‘removeOtherPlugin’, PHP_INT_MAX -1 ); function removeOtherPlugin() { remove_filter( current_filter(), … Read more

Bouncing scroll

Thank you both for the advice. I have checked and it’s my phone browser. I’m using a modified version of chrome called Kiwi, which allows plugins. It’s most likely a plugin conflict not a website issue.

How to make a PDF/Document library [closed]

I would use the Relevanssi plugin which allows you to search PDF files. Upload the PDFs to the media library. This will make them attachment “posts.” Relevanssi can now index them. Make sure that Relevanssi will display PDFs in the search results. As for importing your Calibre library, you might be able to use the … Read more

I am getting error message on accessing menu-endpoint

You didn’t change your prefix for that plugin’s API. Instead of /MC-ACF/wp-json/wp/v2/menus try /MC-ACF/wp-json/wp-api-menus/v2/menus That plugin developer states it right on the page you referenced in your question. If you’re wondering how I solved this. I’m not sure what your use case is, but there are newer versions of similar plugins as well. That one … Read more

How to send a mail when a plugin update found?

The relevant code is wp_update_plugins(). You can see that it stores its state in a site transient called ‘update_plugins’: set_site_transient( ‘update_plugins’, $new_option ); and we can hook that: pre_set_site_transient_update_plugins – called at the start of set_site_transient() set_site_transient_update_plugins – called at the end, if the value was changed Note that set_site_transient( ‘update_plugins’, … ) is called … Read more

Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu

For anyone having the same trouble, I am now using a workaround from the accepted answer on the following question: https://wordpress.stackexchange.com/a/30723/181214 I am using the solution beyond the “EDIT: Another Option” which is working fine for slugs, names, singular names etc. function get_labels() { // return a default slug if(!defined(‘WPLANG’) || !WPLANG || ‘de_DE’ == … Read more