wpseo_tax_meta_special_term_id_validation_ . $term_id, $meta_data, $taxonomy, $term_id

wpseo_tax_meta_special_term_id_validation_ . $term_id, $meta_data, $taxonomy, $term_id

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.28.1

apply_filters('wpseo_tax_meta_special_term_id_validation_ . $term_id, $meta_data, $taxonomy, $term_id') is found 2 times:

  • /inc/options/class-wpseo-taxonomy-meta.php line 160
    					/* Only validate term if the taxonomy exists. */
    					if ( taxonomy_exists( $taxonomy ) && get_term_by( 'id', $term_id, $taxonomy ) === false ) {
    						/* Is this term id a special case ? */
    						if ( has_filter( 'wpseo_tax_meta_special_term_id_validation_' . $term_id ) !== false ) {
    							$clean[ $taxonomy ][ $term_id ] = apply_filters( 'wpseo_tax_meta_special_term_id_validation_' . $term_id, $meta_data, $taxonomy, $term_id );
    						}
    						continue;
    					}
    
    					if ( is_array( $meta_data ) && $meta_data !== [] ) {
    						/* Validate meta data. */
    
  • /inc/options/class-wpseo-taxonomy-meta.php line 176
    					}
    
    					// Deal with special cases (for when taxonomy doesn't exist yet).
    					if ( ! isset( $clean[ $taxonomy ][ $term_id ] ) && has_filter( 'wpseo_tax_meta_special_term_id_validation_' . $term_id ) !== false ) {
    						$clean[ $taxonomy ][ $term_id ] = apply_filters( 'wpseo_tax_meta_special_term_id_validation_' . $term_id, $meta_data, $taxonomy, $term_id );
    					}
    				}
    			}
    		}
    
    		return $clean;