acf_admin_field_group::ajax_render_location_rule()
This function can be accessed via an AJAX action and will return the result from the render_location_value function
Метод класса: acf_admin_field_group{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$acf_admin_field_group = new acf_admin_field_group(); $acf_admin_field_group->ajax_render_location_rule();
Список изменений
С версии 5.0.0 | Введена. |
Код acf_admin_field_group::ajax_render_location_rule() acf admin field group::ajax render location rule ACF 6.0.4
public function ajax_render_location_rule() { // validate. if ( ! acf_verify_ajax() ) { die(); } // verify user capability. if ( ! acf_current_user_can_admin() ) { die(); } // validate rule. $rule = acf_validate_location_rule( acf_sanitize_request_args( $_POST['rule'] ) ); // view. acf_get_view( 'html-location-rule', array( 'rule' => $rule, ) ); // die. die(); }