I found what was wrong, just switch this:
function column_default($item, $column_name){
switch($column_name){
case 'rating':
case 'director':
return $item[$column_name];
default:
return print_r($item,true); //Show the whole array for troubleshooting purposes
}
}
To this:
function column_default($item, $column_name){
switch($column_name){
case 'id':
return $item['plan_id'];
case 'plano':
return $item['plan_name'];
case 'dias':
return $item['plan_days'];
case 'valor':
return 'R$ ' . number_format($item['plan_price'], 2 ,',','.');
default:
return print_r($item,true); //Show the whole array for troubleshooting purposes
}
}
Related Posts:
- Is it mandatory to use $wpdb->prefix in custom tables
- add_action hook for completely new post?
- Is get_option function cached?
- How to include jQuery and JavaScript files correctly?
- How do I log plugin (cron) actions?
- Is there a hook for when you switch themes?
- Adding pre-publish checks with Gutenberg
- Problems after wp_set_password() containing an apostrophe
- Error getting correct blog_id on MU from functions.php
- Front-End Form Submission in Shortcode
- Plugin Localization
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- array_map() for sanitizing $_POST
- Why cant the WP Filesystem API read googlefonts.json?
- calling jquery function on plugin page
- Is there a faster way than wp_insert_post to add content to a blog
- How to include external library in wordpress plugin
- Delete a specific item menu when I deactivate my plugin
- Ajax in WordPress – path issue
- Platform/Website that Supports Crowd-Funded WordPress Projects? [closed]
- Decrease RSS cache time in plugin?
- Add version query tag to all images
- Creating table with plugin is not working
- How to add a custom tag in contact form 7 and change the output in email?
- How to delete an user including data from custom database tables
- How can I create a plugin that changes the title color of a website?
- How to check if Woocommerce Order number equals to post ID?
- Add custom element ID depending where the widget place is, sidebar or footer
- Two functions utilizing registration_errors filter
- Issue plugin commands in admin settings page
- My plugin class doesn’t work! [closed]
- Creating a shortcode, but getting tied up with OOP and Classes?
- Call PHP file within a plugin to activate function
- add_action not calling back to function
- Example Dashboard Widget, Cancel not working
- Woocommerce checkout update totals with datepicker
- add_shortcode() not working inside of function
- How to add and remove a page
- correct way to call javascript into hook function
- “dashboard”-named PHP file doesn’t get included
- How to get plugin activate URL to use URL vars?
- rewrite URL based on selected taxonomy for post page
- Woocommerce – Convert Delivery method into a custom field
- How to Upload Images From a Folder (Not WP_Uploads)
- Possible to get all posts with my shortcode?
- Plugin uninstall function is not working
- Loading custom js file on the admin page through plugin
- How to prevent someone from entering strings without making it available for translation?
- I am unable to save my data from a form
- What’s wrong with my usage of add_filter
- Moving/dragging a metabox removes TinyMCE’s content
- How can I develop a plugin that generates a page dynamically
- Redirect in WordPress plugin
- Converting data-name editor plugin to Gutenberg plugin
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Can calling wp_enqueue_style in wp_iframe apply the stylesheet to everything not just the iframe?
- Copied files from plugin to theme not working
- How can I allow the user to press enter without creating a new element in the editor?
- Forward an old url rewrite scheme to a new one?
- $wpdb in php 5.5
- How to Find a Gallery’s ID
- List categories with descriptions via plugin
- Will a plugin able to know is_user_logged_in?
- Widget instance options not showing correctly
- How Place a Custom Form Fields in a specific location on the User Profile Page?
- Access to the template file of a plug-in
- Can’t remove action hook on plugin class
- Bootstrap within shortcode
- How to make premium plugin? I want to limit it until verification
- `registration_errors` filter doesn’t seem to be called
- How to grab data after wp user search is complete
- Undefined cache functions in my custom plugin
- How to direct WordPress to load custom template for custom post type
- get_the_tags doesn’t works?
- WordPress discards PNG file when uploading plugin file
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Registration Forms
- Replace the WordPress Media Library Uploader
- Override theme’s WooCommerce file
- My plugin showing “Are you sure you want to do this” on screen with a “Argument #2 is not an array in load.php’
- Cannot save settings value
- Is it possible to modify an Elated plugin portfolio-list template in such a way that it will not conflict with future plugin updates?
- Select field value not returned after saving changes
- WP Query Relations / Compare
- Displaying settings information in a table
- Page template compatibility with different themes
- Add Admin menus or submenus depending on conditions
- Plugin settings not saving and 404 is generated on submit
- Refresh or redirect page after activate my plugin
- Why does is_front_page and is_home always return true for posts in wordpress? [closed]
- How do I store a custom dataset in WordPress to best take advantage of API?
- How to Rewrite WordPress URL for a Plugin
- modify buddpress adminbar only in admin pages
- Are custom posts delete by unregistering post type
- Insert plugin html content to a specific spot in the frontpage
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- Fetch Custom Woocomerce filed data and check the data avialble in Wp-user table as nicname or username using function.php
- How to get locale within WP REST Request?
- How to add extra EXIF data when images are uploaded?
- How to boost WP custom post REST API GET queries by custom taxonomies