Admin Notice is only localized when displaying the “Plugins” Backend Page

Note: Revised because that ‘__FILE__’ as in dirname(plugin_basename(‘__FILE__’)), was just a typo in the post/question. But one thing you did not include in your post, is about how are you loading the Bootstrapping class, and where is the file located? Is it in a subfolder like includes, i.e. your-plugin/ includes/ class-bootstraping.php languages/ your-plugin.pot your-plugin.php (main … Read more

Hook on opening a media/document

I am trying to find a hook to be able to set a datalayer.push everytime a document is opened. It could even be something that runs after the document is opened ex: https://proximite-courtage.fr/wp-content/uploads/2022/06/LISTE_PARTENAIRES_PC_22062022.pdf No. WP isn’t running when you visit PDF files directly via their URL, so there is no PHP loaded and no opportunities … Read more