Able to edit custom post, but unable to create new custom post when within submenu. What capability is missing?

I couldn’t find an answer to this question with User Roles Editor, but I have worked around this problem by showing different admin panels for different users. When Plugin Admin logs in, the custom post type is not put under a menu, so they can create new custom posts. When the Administrator logs in, the … Read more

Remove upload file types filter for admin

This is example for only doc file for admin. You are also add another file to avoid restriction for admin. add_filter( ‘wp_check_filetype_and_ext’, ‘file_and_ext_allow_for_user’, 10, 4 ); function file_and_ext_allow_for_user( $types, $file, $filename, $mimes ) { if( is_admin() ){ if( false !== strpos( $filename, ‘.doc’ ) ) { $types[‘ext’] = ‘doc’; $types[‘type’] = ‘application/msword’; } } return … Read more