learndash_binary_selector_item

apply_filters( 'learndash_binary_selector_item',  string $selector_item,  WP_User $user,  string $position,  string $selector_class )

Filters binary selector item.


Description #


Parameters #

$selector_item

(string) Binary selector item title.

$user

(WP_User) WP_User object.

$position

(string) Value for 'left' or 'right' position.

$selector_class

(string) Class reference to selector.


Source #

File: includes/admin/class-learndash-admin-binary-selector.php


Examples #

 <?php
/**
 * Example usage for learndash_binary_selector_item filter.
 */
add_filter(
	'learndash_binary_selector_item',
	function( $selector_item, $user, $position, $selector_class ) {
		// May add any custom logic using $selector_item, $user, $position, $selector_class.

		// Always return $selector_item.
		return $selector_item;
	},
	10,
	4
);