Using the init
action hook instead of the muplugins_loaded
action hook did the job! But I wonder if that’s the proper way of doing it..?
Related Posts:
- How to make a WordPress plugin translation ready?
- How to provide translations for a WordPress TinyMCE plugin?
- Preparing a string in an array for localization
- Shortcodes, output buffering, and WordPress functions
- Problems with localization
- Multiple textdomains
- How to properly load text domain of custom mu plugin
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- WordPress Localization and Templating
- How to properly load text domain of custom mu plugin
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- How to update the language used by wordpress from a plugin
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Singular name Plugin localization
- How to i18n text coming from the db or from an external source
- Should I always prefer esc_attr_e & esc_html_e instead of _e?
- Some strings from a .mo file do not load
- Should shorcodes in i18n plugins be translated and if so, how?
- A better way to include localized labels in WordPress plugins
- How to render a time-of-day string like ’16:42′ with a site’s chosen time format?
- Frontend language per user
- Generate JSON files for language translation from po file without wp-cli i18n make-json
- Shortcode returning localized HTML part
- load_plugin_textdomain doestn’t work with add_action plugins_loaded
- How to prevent someone from entering strings without making it available for translation?
- I18n not working in plugin
- Mixing l18n string from my plugin with WordPress’ translations
- Plugin language always shows WP site language, not profile language
- Is hint for translator compulsory while internationalizing a string containing variables?
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- Translation not working for Constant strings in Plugin
- How are themes and plugins localized using the gettext GNU framework?
- Save translation file of third party plugin in a custom plugin?
- React Plugin Settings Page Localization
- How to get locale within WP REST Request?
- Where to store plugin settings fields
- What’s the best method for emptying an option created with the Settings API?
- template_include (overriding default plugin templates via current theme)
- Using composer for dependency management in plugindevelopment
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Update exisiting site to 3.5 release candidate
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- add_filter and remove_filter added before and after wp_query
- How to get shortcode to work inside a foreach loop called within a shortcode?
- How can I hook into existing WordPress Bulk actions?
- How to bundle a plugin with a theme, or vice versa
- WordPress Media mime type filter problem 4.0
- creating elements/innerblocks via rangecontrol
- How to check if current static page is frontpage from admin plugin
- Use theme constants in plugin?
- How can I display an error message after post has been saved?
- What method to use to call a REST API?
- GET parameters interfere with my plugin settings
- What’s the best place to hire a freelance (contract) WordPress developer? [closed]
- Why my database table not created on activation?
- Resizing Images for a Gallery-Plugin?
- Which themes do you use to test compatibilities with your plugin [closed]
- How to debug a unit test for a WordPress plugin, which uses wordpress-test?
- Adding functions to hooks from within a class
- What filters to call to modify the output of the entire page?
- Tried in different ways but sidebar not working?
- How to Create a Simple Related Posts Plugin
- Help With Rewrite_Rules For a Custom Plug-In
- Theme Install using a Custom Repository
- How to add plugin version update option in plugin row action?
- wp_filesystem put_contents issue with owner/group
- error ‘The package could not be installed. No valid plugins were found.’
- Gutenberg table block with Bootstrap .table class
- Translate MCE button text/tooltip in custom plugin
- Can’t change the style of a submit input type? [closed]
- Show dynamic list of products from custom api of another database under same host
- Hide custom post type by user roles
- Odd map_meta_cap $args on post edit — sometimes integer, sometimes string
- How can I create a custom plugin that allows anonymous users to signup without registering?
- why update option is not working?
- How to add template colors to custom block options in WordPress Gutenberg editor sidebar?
- WP: Search and replace in DB programmatically
- How to silent ‘Attempting a database schema change is discouraged.’?
- How to ignore extra whitespaces in translation functions like _e?
- Get images / media attached to a page by page ID
- How to create two custom post types when plugin is activated?
- Plugin architecture to pull from API & create dynamic content on WP site?
- Plugin admin page stylesheet doesn’t work
- Why is $_POST empty when saving custom Meta Box?
- How to remove dynamic-css
- Wp_List_Table is showing as no class found named wp list table
- 403 error rest_’cookie_invalid_nonce’ on API Request
- Can’t get wpColorPicker to work in a widget
- Allow user to add the php code in wp_mail()
- Plugin setting page – update_option problem
- WordPress Plugin Update Process
- Registration form Plugin… Email confirmation
- How to display posts list on my plugin page?
- Can’t add images in wordpress to my page – button isn’t clickable
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- I don’t understand how symlinks in plugin work
- get the queried_object of an url
- Advanced Custom Fields conflicting with custom plugin when saving custom field
- How to get recent one post from each category on home page?