Personalization – Hide or delete the status of the custom post

I want to hide or delete a custom publishing status when it is set to a specific one.

e.g.
If I have a publication configured in "pending preview" I want to hide the option to change it to the state "shipedf" and "pricenotaxf".
I'm using the PublishPress plugin to create the custom state.

The code so far:
`
function adminstage1 () {

if (! function_exists (& # 39; PublishPress & # 39;))
he came back;

if (! PublishPress () -> custom_status-> is_whitelisted_page ())
he came back;

$ hide_post_status = array (
"pending review"

);
if (! in_array (get_post_status (), $ hide_post_status)) {
?>
    
    
    
    
    <? php
}

}
add_action (& # 39; admin_head & # 39 ;, & # 39; adminstage1 & # 39;);
`

I know it's a mess and maybe it does not make any sense, but I include it to show you my coding skills that are below the beginners.
Any help appreciated.