• 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



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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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