Theme_Upgrader::hide_activate_preview_actions()
Don't display the activate and preview actions to the user.
Hooked to the install_theme_complete_actions filter by Theme_Upgrader::check_parent_theme_filter() when installing a child theme and installing the parent theme fails.
Метод класса: Theme_Upgrader{}
Хуков нет.
Возвращает
Массив
.
Использование
$Theme_Upgrader = new Theme_Upgrader(); $Theme_Upgrader->hide_activate_preview_actions( $actions );
- $actions(массив) (обязательный)
- Preview actions.
Список изменений
С версии 3.4.0 | Введена. |
Код Theme_Upgrader::hide_activate_preview_actions() Theme Upgrader::hide activate preview actions WP 6.5.2
public function hide_activate_preview_actions( $actions ) { unset( $actions['activate'], $actions['preview'] ); return $actions; }