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
- How to know what priority to use with add_action()?
- How to get a translated string from a language other than the current one?
- Localization: I want the backend: english and frontend in defined language
- Can my “add_action” function know the name of the hook calling it?
- remove_action in a theme
- add_action ‘manage_posts_custom_column’ in a class [closed]
- Cron jobs in a class
- Add something to beginning of the content
- Gettext details
- Overwrite textdomain of plugins by default – Lost Translation
- What is the purpose of an extra file for translation?
- Problems with localization
- wp_logout action not working
- What would cause the ‘wp’ action to fire twice per page (but only once per post) in Firefox only?
- 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
- 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
- Is there a way to expose additional fields to the Bulk Action > Edit functionality?
- do_action pass array argument as reference not copy [duplicate]
- Scheduled event won’t fire
- load_child_theme_textdomain doesn’t work in function.php
- How do I translate this string – PHP syntax question
- Usage of do_action and add_adction
- POEdit with Custom mu-plugins code
- Adding another arg to comments_popup_link
- WP action is not triggering a do_action() call within?
- How does WordPress choose which translation file to use?
- How to set a different value in the generator meta tag?
- How to i18n text coming from the db or from an external source
- Proper use of internationalization
- Localization: Textdomain of Child teme
- remove_action returns FALSE
- Remove action from shortcode
- Write automatic title at save_post (infinite loop)
- How to get $tag to fill into add_action() or add_filter()?
- Add meta field after post has been published
- Generate PO File
- Translations not returning translated strings
- Use translated taxonomy labels in plugin
- Activate Child Theme .mo and .po files
- remove_action returns false regardless of priority
- How to make an action run in the background?
- How can I change the language of automated Mails?
- WP cron doesn’t pass through my arguments
- Action when sidebars updated
- Easy export/import of data for Translation
- How to access author data from header action
- Content won’t load when using action the_content
- How can I unhook this action that was added via $this?
- Theme doesn’t want to load localization files
- Update media library image shown in “attachment details” when using wp_insert_attachment to add item to the media library
- How to find where an action is triggered? [closed]
- Form action unfamiliar
- Why does my delete_post hook get called twice
- Action Scheduler not running
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- Adding php to form action breaks code [closed]
- Can I set WordPress to display languages based on system language without a plugin?
- Dynamic name of cron event
- /languages/ folder missing in default themes
- Internationalize plugin so strings can be translated in WPML [closed]
- action wp_set_comment_status never gets fired when i change the comment status [closed]
- localization of theme and plugins to English (originally in another language)
- How to translate user added content in a plugin
- Rename existing cpt and taxonomy with new textdomain
- Issue with translation – Gutenberg
- Change or rewrite add to cart button functionality “
- Better use two dedicated methods hooked with add_action() to different actions, or can it be twice the same method?
- do_action doesn’t trigger if it’s in a template that gets loaded via REST endpoint
- Best hook for when a user session ends?
- add_action where function has arguments
- Load actions and filters only for the admin CPT list
- How to override parent theme actions
- Add Action wp_update_post not Updating WYSWIAG editor
- remove action from woocommerce file
- Can I run a slow action in a seperate thread?
- Font Awesome not loaded on first page of website only – divi theme
- Adding translation files to a child theme
- Custom post type translation
- WP_LIST_TABLE bulk action
- Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain
- Dealing with html forms [closed]
- Cannot Schedule Sending An Email
- WordPress translation
- OOP – add_action
- do_action in header, add action later?
- save post running twice and creating two database entries – how do I disable this?
- Plugin that generates a page of post content
- Save translation file of third party plugin in a custom plugin?
- A way to see real changes of posts inside an action?