• Dear Sirs,

    would you be so kind – if possible – add 2 hook to your Plugin?

    To change to arguments of the register_post_status statement by any one…?

    /modules/custom-status/custom-status.php

    @line 258:

    foreach ( $custom_statuses as $status ) {
    $newargs=apply_filters(‘ef_custom_status_edit’,$status);
    if (is_array($newargs)) {
    register_post_status( $status->slug, array(
    ‘label’ => $newargs );
    } else {
    register_post_status( $status->slug, array(
    ‘label’ => $status->name
    , ‘protected’ => true
    , ‘_builtin’ => false
    , ‘label_count’ => _n_noop( “{$status->name} <span class=’count’>(%s)</span>”, “{$status->name} <span class=’count’>(%s)</span>” )
    ) );
    };
    }
    do_action(“ef_custom_status_registered”);
    }

    That would help me within your great plugin…

  • The topic ‘Add_Filter for Post_Status’ is closed to new replies.