Support » Plugin: Post Expiration Date » Improve plugin

  • killua99

    (@killua99)


    Hi, great plugin altho could you think in something like this

    
    // ADD THE METABOX TO THE EDIT POSTS PAGE
    function hugu_ped_add_expire_date_metabox() {
        //ADD CUSTOM POST TYPES HERE
        $screens = apply_filters( 'hugu_ped_screens_metabox', array( 'post', 'page') );
    
        foreach ( $screens as $screen ) {
        add_meta_box( 'hugu_ped_expire_date_metabox', __( 'Expiration Date', 'hugu'), 'hugu_ped_expire_date_metabox_callback', $screen, 'side', 'high' );
    }
    }
    add_action( 'add_meta_boxes', 'hugu_ped_add_expire_date_metabox' );
    

    That woudl allor others to add this functionality to others Custom Post Type like WooCoomerce.

  • You must be logged in to reply to this topic.