RTMediaUploadShortcode::display_allowed PHP Method

display_allowed() static public method

Helper function to check whether the shortcode should be rendered or not
static public display_allowed ( ) : boolean
return boolean
    static function display_allowed()
    {
        global $rtmedia_query;
        $flag = !(is_home() || is_post_type_archive() || is_author()) && is_user_logged_in() && (is_rtmedia_upload_music_enabled() || is_rtmedia_upload_photo_enabled() || is_rtmedia_upload_video_enabled()) && (isset($rtmedia_query->is_upload_shortcode) && true === $rtmedia_query->is_upload_shortcode || is_rtmedia_bp_profile() && is_rtmedia_profile_media_enable() || is_rtmedia_bp_group() && is_rtmedia_group_media_enable());
        $flag = apply_filters('before_rtmedia_uploader_display', $flag);
        return $flag;
    }