Browse: Home / Hooks /

learndash-rest-api-controllers

apply_filters( 'learndash-rest-api-controllers' )

Description #


Source #

File: includes/rest-api/class-ld-rest-api.php


Examples #

 <?php
/**
 * Example usage for learndash-rest-api-controllers filter.
 */
add_filter(
	'learndash-rest-api-controllers',
	function( $controllers ) {
		// May add any custom logic using $controllers.

		// Always return $controllers.
		return $controllers;
	}
);