ACF_Admin_Field_Groups::__construct
Constructor.
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->__construct();
Changelog
| Since 5.0.0 | Introduced. |
ACF_Admin_Field_Groups::__construct() ACF Admin Field Groups:: construct code ACF 6.0.4
public function __construct() {
// Add hooks.
add_action( 'load-edit.php', array( $this, 'handle_redirection' ) );
add_action( 'current_screen', array( $this, 'current_screen' ) );
// Handle post status change events.
add_action( 'trashed_post', array( $this, 'trashed_post' ) );
add_action( 'untrashed_post', array( $this, 'untrashed_post' ) );
add_action( 'deleted_post', array( $this, 'deleted_post' ) );
}