learndash_get_label_course_step_page

apply_filters( 'learndash_get_label_course_step_page',  string $step_label,  string $step_post_type )

Filters value of course step page label. Used to update step page label in learndash_get_label_course_step_page function.


Description #


Parameters #

$step_label

(string) Course Step ... Page label.

$step_post_type

(string) The post_type slug of the post to return label for.


Source #

File: includes/class-ld-custom-label.php


Examples #

 <?php
/**
 * Example usage for learndash_get_label_course_step_page filter.
 */
add_filter(
	'learndash_get_label_course_step_page',
	function( $step_label, $step_post_type ) {
		// May add any custom logic using $step_label, $step_post_type.

		// Always return $step_label.
		return $step_label;
	},
	10,
	2
);