acf_form_taxonomy::__construct
This function will setup the class functionality
Метод класса: acf_form_taxonomy{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_form_taxonomy = new acf_form_taxonomy(); $acf_form_taxonomy->__construct();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_form_taxonomy::__construct() acf form taxonomy:: construct ACF 6.4.2
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 );
}