WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Swag Store
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #21948
Ticket #21948
: pancakes.2.php
File pancakes.2.php,
210 bytes
(added by
scribu
,
12 years ago
)
Line
1
<?php
2
3
class
Pancake_Labels
{
4
5
function
__get
(
$key
)
{
6
return
'Pancakes!'
;
7
}
8
}
9
10
function
pancake_labels
(
$labels
)
{
11
return
new
Pancake_Labels
;
12
}
13
add_filter
(
'post_type_labels_post'
,
'pancake_labels'
);
14
Trac UI Preferences
Download in other formats:
Original Format