0
  • I am using Visual Composer plugin.
  • I've found a snippet to remove row actions in post list table in word press.

    add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 );
    
    function remove_row_actions( $actions )
    {
        if( get_post_type() === 'my_cpt' )
            unset( $actions['view'] );
        return $actions;
    }
    
  • but I could not found the row action name for the Edit with Visual Composer

  • I want to remove or edit the link into the Row Action "".

Have a look on screenshot

Screenshot

1 Answer 1

0

In general change the filter priority in your code snippet so it runs after the plugin has modified the row action, e.g. 99 or later and check out the $actions with e.g.

print_r( $actions );

on your test install to find the key or search the plugin code for page_row_actions.

In some cases one should be able to remove the page_row_actions filter callback with remove_filter(), but some plugins make it harder.

ps: I think you're looking for the edit_vc row action key.

2
  • Thanks @birgire, It works by changing the priority to 99 and then unset($actions['edit_vc']) Commented Feb 20, 2017 at 10:26
  • you're welcome, glad to hear it worked @Esar-ul-haqQasmi
    – birgire
    Commented Feb 20, 2017 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.