public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/students.php
/**
	 * Register Course Api Endpoints.
	 *
	 * @since 4.1.0
	 *
	 * @param array $endpoints The endpoints to filter.
	 * @param Api The api object reference.
	 *
	 * @return array $endpoints The modified array of endpoints.
	 */
Register Course Api Endpoints.

@param array $endpoints The endpoints to filter.
@param Api The api object reference.

@return array $endpoints The modified array of endpoints.
Register Course Api Endpoints . @param array $endpoints The endpoints to filter . @param Api The api object reference . @return array $endpoints The modified array of endpoints .
public function register_api_endpoints( $endpoints, Api $api ) {
		$endpoints[] = array( 'endpoint' => 'email-student', 'method' => 'POST', 'callback' => array( $this, 'api_email_student' ) );
		$endpoints[] = array( 'endpoint' => 'email-students', 'method' => 'POST', 'callback' => array( $this, 'api_email_students' ) );
		$endpoints[] = array( 'endpoint' => 'enrollment-users', 'method' => 'GET', 'callback' => array( $this, 'api_get_students' ) );
		$endpoints[] = array( 'endpoint' => 'students', 'method' => 'GET', 'callback' => array( $this, 'api_get_students' ) );
		$endpoints[] = array( 'endpoint' => 'add-student', 'method' => 'POST', 'callback' => array( $this, 'api_add_student' ) );
		$endpoints[] = array( 'endpoint' => 'update-student-progress', 'method' => 'POST', 'callback' => array( $this, 'api_update_student_progress' ) );
		return $endpoints;
	}
public function register_api_endpoints ( $ endpoints , Api $ api ) { $ endpoints [ ] = array ( 'endpoint' => 'email-student' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_email_student' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'email-students' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_email_students' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'enrollment-users' , 'method' => 'GET' , 'callback' => array ( $ this , 'api_get_students' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'students' , 'method' => 'GET' , 'callback' => array ( $ this , 'api_get_students' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'add-student' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_add_student' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'update-student-progress' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_update_student_progress' ) ) ; return $ endpoints ; }
Register Course Api Endpoints.
Register Course Api Endpoints .