acf_form_taxonomy::__construct
__construct
This function will setup the class functionality
Method of the class: acf_form_taxonomy{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_form_taxonomy = new acf_form_taxonomy(); $acf_form_taxonomy->__construct();
Changelog
| Since 5.0.0 | Introduced. |
acf_form_taxonomy::__construct() acf form taxonomy:: construct code ACF 6.0.4
function __construct() {
// actions
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
// save
add_action( 'create_term', array( $this, 'save_term' ), 10, 3 );
add_action( 'edit_term', array( $this, 'save_term' ), 10, 3 );
// delete
add_action( 'delete_term', array( $this, 'delete_term' ), 10, 4 );
}