unload_textdomain
Fires before the text domain is unloaded.
Description
Parameters (1)
- 0. $domain (string)
- Text domain. Unique identifier for retrieving translated strings.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'unload_textdomain', $domain );
- The following example is for adding a hook callback.
- // define the unload_textdomain callback
- function action_unload_textdomain( $domain ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'unload_textdomain', 'action_unload_textdomain', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'unload_textdomain', 'action_unload_textdomain', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/l10n.php
- do_action( 'unload_textdomain', $domain );