wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
{$old_status}_to_{$new_status} › Hooks de Ações WordPress
Desde2.3.0
Obsoleton/a
› do_action( "{$old_status}_to_{$new_status}", $post )
| Parâmetros: |
|
| Definido em: |
|
| Codex: |
Fires when a post is transitioned from one status to another.
The dynamic portions of the hook name, `$new_status` and `$old_status`, refer to the old and new post statuses, respectively. Possible hook names include: - `draft_to_publish` - `publish_to_trash` - `pending_to_draft`Funções relacionadas: get_post_status_object, wpmu_log_new_registrations