Seems like you forgot to load the text domain
The plugin handbook says that:
You need to load the MO file with your plugin’s translations. You can
load them by calling the function
load_plugin_textdomain()
(and
load_muplugin_textdomain()
if your plugin will be used as a Must-Use plugin). This call loads
{text-domain}-{locale}.mo
from your plugin’s base directory.
So based on the example there, you could add this to your main plugin file (test.php
):
function test_load_plugin_textdomain() {
load_plugin_textdomain( 'test', false, basename( __DIR__ ) . '/languages/' );
}
add_action( 'plugins_loaded', 'test_load_plugin_textdomain' );
Related Posts:
- How do I change the author of a custom post type?
- How to add a button to custom post type’s posts-page
- How to add multiple images to custom post type?
- Creating a custom public user page
- get_edit_post_link() not working as expected when passed id in plugin
- Is flush_rewrite_rules necessary when creating a custom post type? Why?
- Remove Slug from Custom Post Type results in 404
- WordPress metabox file upload in custom post [duplicate]
- working Custom Post Type and Widget code no longer works when moved from functions.php to plugin
- Unable to filter on field on edit.php page
- Insert slider (Custom Post Type) into pages
- How do I create a custom post type for a training CMS in WordPress?
- WP Query group/order by category name
- Save or update data when custom post published
- Using posts and postmeta table to store custom Address Book Plugin data
- template_redirect not working, apparently for no reason
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- How to add multiple featured image in meta box in post editor?
- How do I set the link in the Custom Post Type admin menu?
- How to List Thumbnails based on Custom Categories
- Adding Meta Boxes while Registering a Post Type in a Class
- How to have the right design for a custom post type without accessing themes
- Dynamic Custom Post Type Plugin
- handling csv data with a custom post type
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- Using custom page templates with plugin [duplicate]
- Get all of user’s custom post types in WP Admin for plugin
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Custom Post Type: Upload Multiple Images
- How to add a custom taxonomy to show up in a custom post type menu?
- Give a permalink to Custom Post Types without title
- Getting template_include to work when allow_url_include is off?
- WordPress post_where & posts_join not working only for custom post type
- Orderby CPT custom fields not working
- Custom Permalink to remove category word , keeping posts permalink with date?
- Form action/link to render a plugin in WordPress front-end
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- Translating custom post type metaboxes [closed]
- Adding a metabox on a CPT’s submenu page
- ACF in wordpress
- Theme independent plugin by using default page template
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- post_parent in custom post type
- Dynamically insert code to custom post type loop
- How do I add custom HTML to the content of an archive page’s posts?
- Unable to format dates to put in event calendar
- How to add query args to links to CPT admin submenu
- Dynamic assign a custom template to custom post type posts
- How to add and display custom content that is not a post
- Custom post type in Custom widget – $listItem
- Problem with adding custom post type meta to header by plugin
- Validate Custom Post Type fields
- Creating alternate meta box context locations
- Generating and downloading files with WP API
- Convert Custom Table Data Based Plugin To Be Searchable
- Modify a plugin function output from another plugin
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Limiting Amount of Posts in a Custom Post Type again
- Limit Amount of Pages users can create in Custom Post Types
- Wp Meta Query does not work while simple Query Works
- Change Text in Admin Panel
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- How to add a default predefined thumbnail when creating a brand new post?
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Plugin Development using classes – Public & Private Callbacks
- URL issue retrieving Custom Post Types using Backbone JS API
- WordPress Custom Post Loop
- Create a post automatically if search result has zero results
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- How to display the post using a shortcode in WordPress?
- Correct way adding External classes to Custom Post type and output their methods to template
- ‘Simple’ Reservation System
- Shortcode and get_template_part
- dynamic vue widget inside custom post
- Custom Post Type Front Page Gives 404
- Show Post columns to specific users on condition
- Custom Post type plugin is using theme single.php and style.css
- get_permalink() of page the enclosing page not posts
- Run query on specific admin options page and send results to select field in another function
- Not able to get all the actions (View, Edit, Quick Edit, Trash), and not able to delete post in custom post type
- how to allow subscriber to add/edit/delete custom post type
- call a function when insert and update a custom post type
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- WP_Query doesn’t accept Category ID
- Error in WP Query. If variable is empty it is displaying previous post value
- Remove Custom Capability
- call_user_func_array() error after moving to another server
- Custom post type not being pulled in widget
- Registering an optional custom post type from a plugin
- Generate custom RSS from a plugin
- Issue on Counting CPT’s Under Taxonomy Term
- Add Excerpt On Quicksand Plugin
- How to apply order on custom taxonomy and custom meta key on custom post type
- Inserting into WP DB
- Create settings page to enable or disable CPT
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Custom Post Type urls not working
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs