post_type_labels_{$post_type} WordPress Filter Hook

The post_type_labels_{$post_type} hook allows you to modify the labels for a custom post type. This can be useful if you want to change the way the labels are displayed in the admin interface or in the front-end of your site.

apply_filters( "post_type_labels_{$post_type}", object $labels ) #

Filters the labels of a specific post type.


Description

The dynamic portion of the hook name, $post_type, refers to the post type slug.

Possible hook names include:

  • post_type_labels_post
  • post_type_labels_page
  • post_type_labels_attachment

Top ↑

See also


Top ↑

Parameters

$labels

(object)Object with labels for the post type as member variables.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More