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.7.2

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

  • /wp-includes/post.php line 2129
    2125
    2126
    2127
    2128
    2129
    2130
    2131
    2132
    2133
    2134
    2135
         * @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: