post_row_actions

Filters the array of row action links on the Posts list table.

Description

apply_filters( 'post_row_actions', (unknown) $actions, (unknown) $the_webhook_get_post_data ); 

Parameters (2)

0. $actions (unknown)
The actions.
1. $the_webhook_get_post_data (unknown)
The webhook get post data.

Usage

To run the hook, copy the example below.
  1. $actions = apply_filters( 'post_row_actions', $actions, $the_webhook_get_post_data ); 
  2.  
  3. if ( !empty( $actions ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the post_row_actions callback 
  2. function filter_post_row_actions( $actions, $the_webhook_get_post_data ) { 
  3. // make filter magic happen here... 
  4. return $actions
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'post_row_actions', 'filter_post_row_actions', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'post_row_actions', 'filter_post_row_actions', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/admin/class-wc-admin-webhooks-table-list.php  
  1. $actions = apply_filters( 'post_row_actions', $actions, $the_webhook->get_post_data() );