Support

Account

Home Forums Backend Issues (wp-admin) upload prefilter function get CPT name or slug Reply To: upload prefilter function get CPT name or slug

  • The post ID is submitted when the file is uploaded in $_POST[‘post_id’]

    
    $post = get_post(intval($_POST['post_id']));