acf_revisions::__construct()publicACF 1.0

__construct

A good place to add actions / filters

@type    function

{} Это метод класса: acf_revisions{}

Хуков нет.

Возвращает

N/A.

Использование

$acf_revisions = new acf_revisions();
$acf_revisions->__construct();

Код acf_revisions::__construct() ACF 5.10.2

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 );

}