acf_revisions::__construct
__construct
A good place to add actions / filters
Method of the class: acf_revisions{}
No Hooks.
Returns
N/A.
Usage
$acf_revisions = new acf_revisions(); $acf_revisions->__construct();
acf_revisions::__construct() acf revisions:: construct code ACF 6.0.4
function __construct() {
// actions
add_action( 'wp_restore_post_revision', array( $this, 'wp_restore_post_revision' ), 10, 2 );
// filters
add_filter( 'wp_save_post_revision_check_for_changes', array( $this, 'wp_save_post_revision_check_for_changes' ), 10, 3 );
add_filter( '_wp_post_revision_fields', array( $this, 'wp_preview_post_fields' ), 10, 2 );
add_filter( '_wp_post_revision_fields', array( $this, 'wp_post_revision_fields' ), 10, 2 );
add_filter( 'acf/validate_post_id', array( $this, 'acf_validate_post_id' ), 10, 2 );
}