apply_filters( 'learndash_essay_upload_user_check', boolean $allow_upload, int $question_id )
Filters whether to allow essay upload or not if the user is not logged in.
Description #
Parameters #
- $allow_upload
-
(boolean) Whether to allow upload.
- $question_id
-
(int) ID of the essay question.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_essay_upload_user_check filter. */ add_filter( 'learndash_essay_upload_user_check', function( $allow_upload, $question_id ) { // May add any custom logic using $allow_upload, $question_id. // Always return $allow_upload. return $allow_upload; }, 10, 2 );