Noptin_Post_Types::remove_actions( string[] $actions, WP_Post $post )
Filters the array of row action links on the Posts list table.
Parameters Parameters
- $actions
(string[]) (Required) An array of row action links. Defaults are 'Edit', 'Quick Edit', 'Restore', 'Trash', 'Delete Permanently', 'Preview', and 'View'.
- $post
(WP_Post) (Required) The post object.
Source Source
File: includes/class-noptin-post-types.php
public function remove_actions( $actions, $post ) { if ( 'noptin-form' === $post->post_type ) { unset( $actions['inline hide-if-no-js'] ); } return $actions; }
Expand full source code Collapse full source code View on GitHub