acf_get_taxonomy_from_request_args()
Gets an ACF taxonomy from request args and verifies nonce based on action.
Хуков нет.
Возвращает
Массив|true|false.
Использование
acf_get_taxonomy_from_request_args( $action );
- $action(строка)
- The action being performed.
По умолчанию:''
Список изменений
| С версии 6.1.5 | Введена. |
Код acf_get_taxonomy_from_request_args() acf get taxonomy from request args ACF 6.4.2
function acf_get_taxonomy_from_request_args( $action = '' ) {
$acf_use_taxonomy = (int) acf_request_arg( 'use_taxonomy', 0 );
if ( ! $acf_use_taxonomy || ! wp_verify_nonce( acf_request_arg( '_wpnonce' ), $action . '-' . $acf_use_taxonomy ) ) {
return false;
}
return acf_get_internal_post_type( $acf_use_taxonomy, 'acf-taxonomy' );
}