ld_template_args_{$name}

apply_filters( "ld_template_args_{$name}",  array $args,  string $filepath,  boolean $echo )

Filters template arguments.


Description #

The dynamic part of the hook refers to the name of the template.


Parameters #

$args

(array) Template data.

$filepath

(string) Template file path.

$echo

(boolean) Whether to echo the template output or not.


Source #

File: includes/class-ld-lms.php


Examples #

 <?php
/**
 * Example usage for ld_template_args_{$name} filter.
 */
add_filter(
	'ld_template_args_course',
	function( $args, $filepath, $echo ) {
		// May add any custom logic using $args, $filepath, $echo.

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