ACF_Admin_Field_Groups::handle_redirection()
Redirects users from ACF 4.0 admin page.
Метод класса: ACF_Admin_Field_Groups{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->handle_redirection();
Список изменений
С версии 5.7.6 | Введена. |
Код ACF_Admin_Field_Groups::handle_redirection() ACF Admin Field Groups::handle redirection ACF 6.0.4
public function handle_redirection() { if ( isset( $_GET['post_type'] ) && $_GET['post_type'] === 'acf' ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended wp_redirect( $this->get_admin_url() ); exit; } }