You can fire filter hook gettext
( example available too ) to change default text Allow comments. in admin edit screen. Here another sample function:
add_filter( 'gettext','wpse221235_change_admin_cpt_text_filter', 1, 3 );
function wpse221235_change_admin_cpt_text_filter( $translated_text, $text, $domain )
{
global $typenow;
if ( is_admin() && 'Allow comments.' == $text && 'your-post-type' == $typenow )
$translated_text = __( 'Allow reviews.', 'text_domain' );
return $translated_text;
}
Of course, thanks @Sumit for point out, those sample just give the OP the direction, the same approach with WordPress example. If we need a more generic approach, please visit @toscho answer, there are a lot of discussion about it, and we can figure out the good approach to change text translation.
Related Posts:
- Why will comments not remain open on custom post types?
- Get terms by taxonomy AND post_type
- New post status for custom post type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Allow user to Edit Posts but not Add New?
- WordPress 4.4+ : How to revision CPT + metadata
- How can I filter posts by post_parent in the admin?
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Using Templates with Custom Post Type UI
- How to setup a Custom Taxonomy Term template
- Remove Custom Post Type menu for non-administrator users.
- Using Query Posts With Multiple Post Types And A Taxonomy
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Display Custom Post Type in divs just thumb and title
- Custom Taxonomy List links being re-written
- wp_list_categories and custom post types
- Bulk 301 redirect for custom post type
- Associate Taxonomies Across Post Types
- ‘category__and’ for custom taxonomy?
- Custom field default value with counter
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- Warning when attempting to edit/add custom post type
- Check if a specific custom field exists?
- How does register_post_type know how and which function to use from the add_action function?
- Fetch ID’s associated with a custom post type when translated with WPML?
- Custom post types archive redirect
- Can’t query tag and post_type at the same time
- Moving ‘register_post_type’ to seperate file not working
- Get post from custom post type order by two taxonomies
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- Override a page template from a plugin in a child theme
- Display custom fields from custom posts in RSS feed
- On update or create post redirect to current post position in list
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- Versioned Custom Post Type (Not the same as revisions)
- Is it better to use WordPress Custom Post Types or Taxonomies?
- A custom post within a custom post
- custom post type pagination error 404
- Display Woocommerce Orders for specific author [closed]
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- TinyMCE style formats for different post types
- Problems with image size on the server WordPress
- How to add multiple images to a custom post type without plugin [closed]
- get_the_title() is returning results from previous loop
- Moving meta boxes in admin
- Post-thumbnail only for specific post-types?
- Add post meta programmatically to attachment
- Get Specific Template Part if Custom Field is Some Value
- Page as Archive page
- 3 random images from custom post type, each in a div with a diffrent class
- get_category_link() for custom post type does not include custom slug rewrite?
- Displaying multiple post types on home page
- Shortcode leaves no space for other elements?
- Show All Custom Post Types On A Single Archive Page
- Custom post type returns bad post ID
- Custom Post Types,Permalink and Heirarchy
- Send post changes to set email addresses (not users or subscribers)
- Foreach loop returning more than one item when querying taxonomy
- Permalinks for single-[custom-post-types] not working
- Most viewed post of custom post type
- How to enable parent-child relationships and post attribute admin widget for posts
- Can I get an auto-populated dropdown list of other custom posts in a custom post edit page?
- Custom post types
- Manually adding or updating CPT automatically sets post_status of future
- Images not load on custom post type sidebar, related posts
- Custom post type page with parameter
- Replace Content of Sidebar on Custom Post Type
- open custom post type in popup window instead of page
- Filling custom post type posts from a rest api
- Show Post Types customized in Template Page
- Conditional editing CPT – using editor’s role and author’s usermeta
- Get category name of custom post type
- Tags being removed upon updates to related posts: ACF/Genesis/WP5.4.1
- Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts
- Pagination for a cpt filtered with a category
- How do I force a CPT to select a shared custom template in Post Attributes?
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Filter before manage_posts_custom_column
- How to manage a dynamic multi-level page hierearchy system?
- Function for when new custom post type is created should do something
- Create unordered list from custom field type entires separated by a comma
- Custom Fields with add_post_meta()
- Metabox messes up permalink
- Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()
- Creating Slider in wordpress theme with custom post
- Strange behavior on WP_query
- What am I doing wrong with my taxonomy?
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- General question about Parent and Child Post type relationships
- WordPress Load more posts by ajax not working
- What’s the best way to show custom post types? With page template it’s not perfect!
- Multiple while loops not functioning [closed]
- How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?
- taxonomies or categories w/custom post
- Post count for particular term
- Paginate yearly archives for a custom post type
- Modify permalink of CPT archive to support two taxonomies
- Why does wp_generate_uuid4() timeout?