learndash_essay_upload_urlbase

apply_filters( 'learndash_essay_upload_urlbase',  string $url_base,  string $filename,  string $upload_dir )

Filters essay upload url base.


Description #


Parameters #

$url_base

(string) URL 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_urlbase filter.
 */
add_filter(
	'learndash_essay_upload_urlbase',
	function( $url_base, $filename, $upload_dir ) {
		// May add any custom logic using $url_base, $filename, $upload_dir.

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