How to customize the menu of question

Solved3.13K viewsCore

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

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 :

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

Thanks very much,
I confirm it.