The default
text domain is registered in wp_load.php
before plugins are loaded. See the function wp_load_translations_early()
.
So when you register your action callback, the text domain has been loaded already.
For an alternative way to list all registered text domains see this answer: List of Default Translated Phrases.
Related Posts:
- Theme elements not translating
- Localization / textdomain is slow and chaotic
- Two text domains in one plugin
- Should I change text-domain of TGM library inside theme?
- Does the textdomain have to be the theme’s name?
- WordPress Theme .mo-file won’t load
- Translate are not working for standard admin
- Translation not working for Constant strings in Plugin
- remove_action or remove_filter with external classes?
- add_action reference a class
- How to create .pot files with POedit?
- Translate a plugin using .po .mo files
- Why does save_post action fire when creating a new post?
- What is a Theme textdomain?
- How to make a WordPress plugin translation ready?
- Remove parent theme action in child
- Theme localization of “slugs” (custom post types, taxonomies)
- How to know what priority to use with add_action()?
- How to do_action and get a return value?
- How to get a translated string from a language other than the current one?
- Is it ok to use a function to output the text domain name in a wordpress theme
- Is a text-domain necessary for a child theme
- How to print translation supported text with HTML URL
- How to get a localized version of WordPress from a repository?
- Localization: I want the backend: english and frontend in defined language
- Working with l10n contexts (_x etc)
- Remove an action from an external Class
- Difference between do_action_ref_array() and do_action()
- Can my “add_action” function know the name of the hook calling it?
- How to integrate get_post_time with date_i18n function?
- Why is there both a save_post and wp_insert_post action?
- Does the event ‘wp_version_check’ even exist? What is it doing?
- gettext does not translate when called in ajax
- When is admin_init Action ran?
- How to debug failed load_theme_textdomain()?
- Can an action callback prevent the parent from continuing execution?
- remove_action in a theme
- add_action ‘manage_posts_custom_column’ in a class [closed]
- How to provide translations for a WordPress TinyMCE plugin?
- How to escape the single quote character in i18n translation strings?
- How do I enqueue a script to run inside the Gutenberg editor?
- How can I find out what functions are assigned to actions?
- Unable to prevent function using save_post firing twice
- Difference between do_action(‘admin_enqueue_scripts’, $hook_suffix) and do_action(“admin_print_styles-$hook_suffix”) syntax
- Cron jobs in a class
- Add something to beginning of the content
- Disable WooCommerce action
- Gettext details
- How can I remove the WP menu from the admin bar?
- When and Where to use wp_insert_post()
- Why, Where, and When to use reference pointers in filters/hooks?
- How to escape single and plural i18n text strings?
- Best pratice to make taxonomy terms translatable without changing slugs?
- How to load translation in JavaScript?
- Overwrite textdomain of plugins by default – Lost Translation
- add_action customize_register not working
- What is the purpose of an extra file for translation?
- What are the most used WordPress localization?
- load_plugin_textdomain in `plugins_loaded` or `init`?
- Passing arguments into ‘init’ function
- Difference between 2 internationalization (i18n) functions __() & _e()
- Add a Custom Field in Comment Box AFTER text area BUT BEFORE Send button
- How to use conditional add_action for WordPress
- Using wp_insert_post and post_update_meta but need to fire save_post afterward
- translation does not work with text_domain
- WP Schedule Event – Every Day When First Visitor Comes
- enqueuing React script and hooking its target div fails to load script
- Problems with localization
- Localization works but still get “This plugin is not properly prepared for localization” msg in directory
- wp_logout action not working
- How can I translate the name of my Plugin for other languages?
- How to remove an action that is added inside a class
- Multiple textdomains
- Best location for theme translation files
- Having an add_action( ‘user_new_form’,) [closed]
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Using auth_redirect returns cannot modify header information
- add action which returns modified value
- What would cause the ‘wp’ action to fire twice per page (but only once per post) in Firefox only?
- Problem:Save Several Duplicate posts in The Database and then Error nesting level of ‘100’ reached
- How to remove an action added by a child theme of Genesis
- Can’t translate the post meta data (Date) in another language
- I don’t understand why I need a lower priority to remove an action with a higher priority to make it work
- How to load theme textdomain from plugin?
- Change language of comments template
- WordPress admin WP_table_list show incorrectly
- wp_get_attachment_metadata returns false with add_action() ‘add_attachment’ hook
- How to add a checkbox inside the “Publish post” widget?
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- get_the_date() for translating date format
- Manually add admin bar
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Is there a way to expose additional fields to the Bulk Action > Edit functionality?
- What’s the usage of action do_meta_boxes?
- How can I invoke an action after a CiviCRM triggering event?
- Custom bulk actions in WP 3.7.1
- Remove action from a plugin class
- do_action pass array argument as reference not copy [duplicate]
- how can I use add_action with external class which the function contain 2 argument?
- remove_action not working with procedural function