Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions class-simple-page-ordering.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,20 @@ public static function page_row_actions( $actions, $post ) {
return $actions;
}

/**
* Allow or disallow new row actions.
*
* @since 2.7.5
*
* @param boolean $should_add_actions Whether to add the new row actions.
* @param array $actions An array of row action links.
* @param WP_Post $post The post object.
*/
$should_add_actions = apply_filters( 'simple_page_ordering_allow_row_actions', true, $actions, $post );
if ( ! $should_add_actions ) {
return $actions;
}

list( 'top_level_pages' => $top_level_pages, 'children_pages' => $children_pages ) = self::get_walked_pages( $post->post_type );

$edit_link = get_edit_post_link( $post->ID, 'raw' );
Expand Down