9-02 1,126 views
plugins_loaded
This hook is called once any activated plugins have been loaded. Is generally used for immediate filter setup, or plugin overrides.
The plugins_loaded action hook fires early, and precedes the setup_theme, after_setup_theme, init and wp_loaded action hooks.
load_textdomain_mofile
Loads MO file into the list of domains.
MO文件是多国语言
If the domain already exists, the inclusion will fail. If the MO file is not readable, the inclusion will fail.
On success, the MO file will be placed in the $l10n global by $domain and will be an gettext_reader object.
add_options_page

add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function);
add_filter
add_filter( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 )
add_action
add_action( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 )
source
File: wp-includes/plugin.php
function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) {
return add_filter($tag, $function_to_add, $priority, $accepted_args);
}