Site icon Hip-Hop Website Design and Development

Hide or remove custom post status

I want to hide or remove a custom post status when it is set to a specific one.

e.g.
If I have a post set to status “pendingreviewf” I want to hide the option to change it to the status “shipedf” and “pricenotaxf”.
I am using the PublishPress plugin to create the custom status.

The code so far:

function adminstage1() {

    if ( ! function_exists( 'PublishPress' ) )
        return;

    if ( ! PublishPress()->custom_status->is_whitelisted_page() )
        return;

    $hide_post_status = array( 'pendingreviewf' );
    if ( ! in_array( get_post_status(), $hide_post_status) ) {

        ?>
        <style>
            #post_status option[value="shipedf"] {
                display: none;
            }
            #post_status option[value="shipedf"] {
                display: none;
            }

        </style>
        <?php
    }
}
add_action( 'admin_head', 'adminstage1' );

I know it’s a mess and maybe isn’t making any sense, but I include it to show you my coding skills which are below beginners.
Any help appreciated.