Plugin Contributor
Kim L
(@kimmyx)
Hi @grokwhy,
An example for the WPDA_ADD_SEARCH_ACTIONS hook can be found here: wpda_add_search_actions | WP Data Access
Hope that helps! Let us know if you have more questions. 😊
Kim,
By example, I meant an example that includes code where that page shows, //your code goes here. That page just shows a stub.
I’d like to understand specifically what problem WPDA_ADD_SEARCH_ACTIONS is solving, and what it looks like on the front end.
Thanks,
Russ
Plugin Contributor
Kim L
(@kimmyx)
Hi Russ,
Thanks for the clarification!
Any allowable functions you can add inside a WordPress action hook are allowed inside the WPDA_ADD_SEARCH_ACTIONS hook. The hook is created simply to make it easier. This specific action adds any function to your WordPress list tables search bar area.
For example, with this code:
function my_add_search_actions( $schema_name, $table_name, $table_settings, $wpda_list_columns ) {
echo "<h3>★</h3>";
}
add_action( 'wpda_add_search_actions', 'my_add_search_actions', 10, 4 );
I added a star icon after the table name. See here: https://share.getcloudapp.com/xQuEywK6
Hope that helps! Let us know if you have questions.
Plugin Contributor
Kim L
(@kimmyx)
Hi there,
I’m going to mark this as resolved as we haven’t heard from you in a while.
Feel free to create a new thread if you have other questions.
Thanks!