acf_form_taxonomy::save_term()
save_term
description
Метод класса: acf_form_taxonomy{}
Хуков нет.
Возвращает
$post_id
. (int)
Использование
$acf_form_taxonomy = new acf_form_taxonomy(); $acf_form_taxonomy->save_term( $term_id, $tt_id, $taxonomy );
- $term_id (обязательный)
- -
- $tt_id (обязательный)
- -
- $taxonomy (обязательный)
- -
Список изменений
С версии 5.0.0 | Введена. |
Код acf_form_taxonomy::save_term() acf form taxonomy::save term ACF 6.0.4
function save_term( $term_id, $tt_id, $taxonomy ) { // vars $post_id = 'term_' . $term_id; // verify and remove nonce if ( ! acf_verify_nonce( 'taxonomy' ) ) { return $term_id; } // valied and show errors acf_validate_save_post( true ); // save acf_save_post( $post_id ); }