Figured this out myself after kaiser pointed me towards the appropriate entry on the Codex, specifically the part at http://codex.wordpress.org/Class_Reference/WP_List_Table#Notice:_Sortable_Columns which I’d managed to miss. Problem was with the get_sortable_columns method, which should look like this:
public function get_sortable_columns() {
return $sortable = array(
'title'=>array('title',true),
'description'=>array('description',true),
'submissionDate'=>array('submissionDate',true),
'name'=>array('name',true),
'email'=>array('email',true),
'post_title'=>array('post_title',true)
);
}
Guess the tutorial I was using must have been incorrect.
Related Posts:
- How to override existing plugin action with new action
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- How to store username and password to API in wordpress option DB?
- Which hook should be used to add an action containing a redirect?
- Is it worth checking if class_exists when developing a plugin and how to do it?
- Why Does get_posts() Return an Empty Set?
- the_content after all shortcodes are parsed
- Where to enqueue stylesheets for plugin?
- How do I resolve Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1145
- Category listing with thumbnail and description on home page
- How to get all images and their thumbnails from wp media library
- Hook event for upload image in the menu
- Plugin: Relative URL to images in another folder accessed inside a JS file
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- Timeout on Admin-Ajax?
- Is there a way to verified if an add_filter is already applied?
- Rearranging Dashboard meta boxes with use of plugin/functions.php
- Creating a path in a plugin to call a function
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- Adding JS function as third parameter in do_action
- Plugin Uninstall and Deactivate via Options Menu
- Do I have to override the wp_mail() pluggable function with writing a plugin?
- If a function requires add_action(‘init’) how can I run it only once on plugin activation?
- Ordering posts by metadata
- is_page() function doesnt working
- When I deactive WooCommerce Plugin, I want to take a action in My plugin
- Override the default Add/Edit site forms of the Network Panel in custom plugin
- add more custom post types and custom role to the code
- Executing a function upon webhook calling wordpress
- How to display additional info in the plugins admin table?
- How a deprecated function can crash WordPress site while upgrading
- Where to store the name of a custom table?
- Backbone event attachment:compat:ready can’t hook
- Limit role to one plugin [duplicate]
- How to fix Uninitialized string offset: error on a checkbox in WP Settings API
- Upgrade private plugin without deleting files?
- Saving value of a selection option in comment form as comment meta
- Is there some way to provide the user a list of existing content in a CPT
- Issue with querying
- Remove unwanted elements for a wp_nav_menu
- What is the proper method of using global $post?
- Is this best practice for Dynamically adding items to WordPress menus?
- There is a problem in the gutenberg block I developed. Problem is with withInstanceId
- Detect front-end pages only in init hook
- how to add stylesheet to particular plugin only?
- best way to make a WordPresss multisite that is secure but at the same time supporting my plugin development efforts
- How to change title tag at page after loaded post?
- Difference between wp_salt schemes
- How to get post content by get_posts function?
- Getting following web services error after activating the Rewards Plugin
- WordPress custom taxonomy check box to dropdown
- WordPress daily cron is executing more frequently than once a day
- How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?
- How can I replace the search results displayed by WordPress?
- How to modify files inside wp-includes directory in wordpress
- Fatal error: Call to a member function get_page_permastruct() on a non-object
- What is the best way to store a few fields?
- add_submenu_page hooked function must explicitly check user capabilities – why?
- How to apply style_loader_src filter with exclusion of a specific file?
- Which is the better way to store images for the plugin?
- I18n not working in plugin
- Mixing l18n string from my plugin with WordPress’ translations
- Minimum Widget Width for Plugin Development
- Should I use wp-content/cache or [PLUGIN_DIR]/cache?
- How to resize WordPress images on upload to specific height and width without cropping it
- configuration of .htaccess for add_rewrite_rule to make sense
- Get section of input passed to the sanitize_callback
- Restrict certain actions to plugin-specific admin menu pages only
- Adding tables to dashboard pages programmatically?
- how to add custom fields into new & update post page?
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- List all user post API endpoint
- Condition to check previous next article post title
- How to display plugin with javascript using markup of the theme?
- Can display plugin without shortcode?
- Dynamically modify content added to table via javascript
- functions won’t fire after I converted my code from procedural code to OOP
- How to prevent wp_insert_post from creating a new post every second?
- Multisite and the JSON REST API: How to?
- Updating a WP Plugin SVN not showing on WordPress Website or Zip
- Download stopped working in 4.7.4
- $wpdb Mysql trigger problem
- Looping single post in a theme
- WP Ajax on page load not working on bluehost but was working on Godaddy
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- WordPress postboxes On Tabbed Views and Hiding Registered Pages
- How can I send an id over the url?
- grouping my widgets wordpress
- Creating custom Insert Media page
- Get fields of a widget
- Yet another wp_insert_post infinite loop. What is wrong?
- Initialize class inside plugin
- “Print to printer” functionality in a plugin
- How do you filter get_media_items by mime type in a custom media upload tab?
- Which subset of html does WordPress support?
- How to set init for maximum script execution, memory limit and max files upload in wordpress
- Trying to build a plugin – Cannot modify header information
- Find Any Theme’s page.php File
- Is it smart to require_once wp-admin/includes/plugin.php when you need only one function from it
- multiple record insert creating many duplicate records