tjkwebdev
Forum Replies Created
-
Okay, will do. Just an FYi,
tabindexis reset to0not just for hidden fields, but all fields.Forum: Developing with WordPress
In reply to: Custom WP List Table with custom bulk actionsThanks for your help on this. I’ll just have to keep digging and write my own handler method.
Forum: Developing with WordPress
In reply to: Custom WP List Table with custom bulk actionsI changed
$user_idsto$users– thanks for catching that. Tried again after that change and also after commenting out the$redirect_toline, but unfortunately neither worked. Still noerror_log()messages.I used
has_filter()to confirm that both filters are actually added. So yes, I’m back to thinking it has something to do with the custom list table not firing the bulk action handler function. May have to just roll my own, which is not ideal.Forum: Developing with WordPress
In reply to: Custom WP List Table with custom bulk actionsThanks, I gave it a try, but no difference, or maybe I put the
error_log()in the wrong place.I searched for but found no
do_action()in the class. I did find this (around line 430) and addederror_log( $this->screen->id )just before it:$this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );The screen id is same as I was getting before,
woocommerce_page_tkwd-wc-my-plugin.Forum: Developing with WordPress
In reply to: Custom WP List Table with custom bulk actionsHow would I do this?
get_current_screen( id )returnswoocommerce_page_tkwd-wc-my-pluginso are you saying add a temporary error_log() to the do_action() function? And if so, what would I log that would tell me what screen id do_action() is acting on?Also, at one point I changed the plugin from being a submenu of Woocommerce to a WP top level menu item (thinking that being a submenu page of an extension was the issue). Then the screen id was
toplevel_page_tkwd-wc-my-pluginand I got the same (non)result.Off to work soon, may not be able to respond for while….
Thanks
Forum: Developing with WordPress
In reply to: Custom WP List Table with custom bulk actionsHi Frank,
Thanks for the suggestion but I still get the same (non)result.
By the way, that line of code now reads:
$this->_column_headers = array( $columns, $hidden, $sortable, 'user_login' );Still trying to figure this out….
- This reply was modified 8 years ago by tjkwebdev.