How to customize the menu of question

Solved3.50K viewsCore
0

Hello, everyone.
I want to customize the ap-dropdown-menu.
How to remove some items from ap-dropdown-menu.
I am looking forward to any answers.

Question is closed for new answers.
Selected answer as best
0

Hello
Here is an example which will remove delete link, and you can customize it further it for removing more items.
More info can be found here : https://anspress.io/resources/functions/ap_post_actions/

add_filter('ap_posts_actions', function($actions){
    if ( $actions ) {
        foreach( $actions as $k => $action ) {
            if ( 'toggle_delete_post' === $action['cb'] ) {
                unset( $actions[ $k ] );
            }
        }
    }
    return $actions;
});

Selected answer as best

Rahul,
Thanks very much,
I confirm it.