acf/{$this->hook_name}/ajax_validate_values

acf/{$this->hook_name}/ajax_validate_values

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.2.7

apply_filters('acf/{$this->hook_name}/ajax_validate_values') is found 2 times:

  • /includes/post-types/class-acf-post-type.php line 371
    					}
    				}
    			}
    
    			$valid = apply_filters( "acf/{$this->hook_name}/ajax_validate_values", $valid, $_POST['acf_post_type'] ); // phpcs:ignore WordPress.Security -- Raw input send to hook for validation.
    
    			return $valid;
    		}
    
    		/**
    		 * Parses ACF post type settings and returns an array of post type
    
  • /includes/post-types/class-acf-taxonomy.php line 292
    					acf_add_internal_post_type_validation_error( 'taxonomy', __( 'This taxonomy key is already in use by another taxonomy registered outside of ACF and cannot be used.', 'acf' ) );
    				}
    			}
    
    			$valid = apply_filters( "acf/{$this->hook_name}/ajax_validate_values", $valid, $_POST['acf_taxonomy'] ); // phpcs:ignore WordPress.Security -- Raw input send to hook for validation.
    
    			return $valid;
    		}
    
    		/**
    		 * Parses ACF taxonomy settings and returns an array of taxonomy