wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
enable_maintenance_mode › Les Filtres WordPress
Depuis4.6.0
Dépréciéen/a
› apply_filters( 'enable_maintenance_mode', true, $upgrading )
Paramètres: (2) |
|
Défini(e) dans: |
|
Codex: |
Filters whether to enable maintenance mode.
This filter runs before it can be used by plugins. It is designed for non-web runtimes. If this filter returns true, maintenance mode will be active and the request will end. If false, the request will be allowed to continue processing even if maintenance mode should be active.
Fonctions en relation: wp_is_maintenance_mode, wp_maintenance, maintenance_nag, get_main_site_id, image_make_intermediate_size, remove_theme_mod