ACF_Admin_Field_Groups::handle_redirection
Redirects users from ACF 4.0 admin page.
Method of the class: ACF_Admin_Field_Groups{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->handle_redirection();
Changelog
| Since 5.7.6 | Introduced. |
ACF_Admin_Field_Groups::handle_redirection() ACF Admin Field Groups::handle redirection code 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;
}
}