post_type_labels_{$post_type}

post_type_labels_{$post_type}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('post_type_labels_{$post_type}') is found 1 times:

  • /wp-includes/post.php line 2109
    	 * @see get_post_type_labels() for the full list of labels.
    	 *
    	 * @param object $labels Object with labels for the post type as member variables.
    	 */
    	$labels = apply_filters( "post_type_labels_{$post_type}", $labels );
    
    	// Ensure that the filtered labels contain all required default values.
    	$labels = (object) array_merge( (array) $default_labels, (array) $labels );
    
    	return $labels;
    }
    

See this hook used in plugins: