You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement related to a problem? Please describe.
Is GatherPress consistent in its type naming? I’m not sure.
Within a separate plugin, modify the labels (all labels !) for all the registered main data types, using post_type_labels_{$post_type}
Events —> gigs
Venues —> spots
Topics —> types
Test that all administrative texts follow the new labels.
This means to find EVERY instance of the string: „event“, „venue“ and „topic“ ( and their plurals); and replace them the dynamic values from post_type->labels
Create a GatherPress-awesome example from all of that
Designs
The developer docs have this simple example:
If you need to modify the post type labels, note the labels parameter for this filter is an object, not an array.
In the example below, the post type is “employee” and the new label reference is “headshot”.
/** * Changes strings referencing Featured Images for a post type * * @param object $labels Current post type labels * @return object Modified post type labels */functionchange_featured_image_labels( $labels ) {
$labels->featured_image = 'Headshot';
$labels->set_featured_image = 'Set headshot';
$labels->remove_featured_image = 'Remove headshot';
$labels->use_featured_image = 'Use as headshot';
return$labels;
} // change_featured_image_labels()add_filter( 'post_type_labels_employee', 'change_featured_image_labels', 10, 1 );
Describe alternatives you've considered
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is your enhancement related to a problem? Please describe.
Is GatherPress consistent in its type naming? I’m not sure.
Within a separate plugin, modify the labels (all labels !) for all the registered main data types, using post_type_labels_{$post_type}
Designs
The developer docs have this simple example:
Describe alternatives you've considered
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: