Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

crdipu on "post_row_actions filter is not working while update post using quick edit"

$
0
0

Hi All,
I have created two links using post_row_actions, it was displaying fine when page loads. But the links will get disappear after update post using quick-edit. Is it a bug from WordPress or did I miss something. My code will look like given below.

add_filter('post_row_actions', 'add_new_link', 10, 2);

public function add_new_link($actions, $page_object)
{
    $actions['new_action'] = '<a href="'.admin_url().'post.php?id='.$page_object->ID.'&action=new-action">New Action</a>';
}

Viewing all articles
Browse latest Browse all 8245

Trending Articles