Description
Use this filter to add/remove actions from the Inbox page.
Usage
add_filter( 'owf_inbox_row_actions', 'custom_inbox_row_actions', 10, 2 );
Parameters
- post_id
- inbox_row_actions – an array of current inbox row actions.
Example
add_filter( 'owf_inbox_row_actions', 'custom_inbox_row_actions', 10, 2 ); public function custom_inbox_row_actions( $post_id, $inbox_row_actions ) { /** Remove View History link **/ unset( $inbox_row_actions['view_history'] ); /** Add a Thumbnail link **/ $link_info = "<span><a href=thumbnail.php?post=". $post_id . " class='edit'>" . __( "Thumbnail", "oasisworkflow" ) . "</a></span>"; $my_custom_inbox_action = array( 'thumbnail' => $link_info ); $inbox_row_actions = array_merge( $inbox_row_actions, $my_custom_inbox_action ); return $inbox_row_actions; }
Source Code
The filter is located in oasis-workflow-pro/includes/class-ow-inbox-service.php