learndash_essay_upload_dirbase

apply_filters( 'learndash_essay_upload_dirbase',  string $dir_base,  string $filename,  string $upload_dir )

Filters essay upload directory base.


Description #


Parameters #

$dir_base

(string) Directory Base.

$filename

(string) Essay file name.

$upload_dir

(string) Uploads directory path.


Source #

File: includes/import/class-ld-import-quiz-statistics.php


Examples #

 <?php
/**
 * Example usage for learndash_essay_upload_dirbase filter.
 */
add_filter(
	'learndash_essay_upload_dirbase',
	function( $dir_base, $filename, $upload_dir ) {
		// May add any custom logic using $dir_base, $filename, $upload_dir.

		// Always return $dir_base.
		return $dir_base;
	},
	10,
	3
);