public/wordpress/wp-content/plugins/wp-courseware/includes/core/tools.php
/**
	 * Register Settings Api Endpoints.
	 *
	 * @since 4.1.0
	 *
	 * @param array $endpoints The endpoints to filter.
	 * @param Api The api endpoints.
	 *
	 * @return array $endpoints The modified array of endpoints.
	 */
Register Settings Api Endpoints.

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

@return array $endpoints The modified array of endpoints.
Register Settings Api Endpoints . @param array $endpoints The endpoints to filter . @param Api The api endpoints . @return array $endpoints The modified array of endpoints .
public function register_api_endpoints( $endpoints, Api $api ) {
		$endpoints[] = array( 'endpoint' => 'systeminfo', 'method' => 'GET', 'callback' => array( $this, 'api_get_systeminfo' ) );
		$endpoints[] = array( 'endpoint' => 'utility-clear-transients', 'method' => 'POST', 'callback' => array( $this, 'api_clear_transients' ) );
		$endpoints[] = array( 'endpoint' => 'utility-delete-orphaned-question-tags', 'method' => 'POST', 'callback' => array( $this, 'api_delete_orphaned_question_tags' ) );
		$endpoints[] = array( 'endpoint' => 'utility-delete-orphaned-units', 'method' => 'POST', 'callback' => array( $this, 'api_delete_orphaned_units' ) );
		$endpoints[] = array( 'endpoint' => 'utility-manually-upgrade-courses', 'method' => 'POST', 'callback' => array( $this, 'api_manually_upgrade_courses' ) );
		$endpoints[] = array( 'endpoint' => 'utility-reset-roles', 'method' => 'POST', 'callback' => array( $this, 'api_reset_roles_and_caps' ) );
		$endpoints[] = array( 'endpoint' => 'utility-reset-tracking', 'method' => 'POST', 'callback' => array( $this, 'api_reset_tracking_optin' ) );
		$endpoints[] = array( 'endpoint' => 'utility-send-tracking', 'method' => 'POST', 'callback' => array( $this, 'api_send_tracking_data' ) );
		$endpoints[] = array( 'endpoint' => 'utility-run-updater', 'method' => 'POST', 'callback' => array( $this, 'api_run_updater' ) );
		$endpoints[] = array( 'endpoint' => 'utility-kill-updater', 'method' => 'POST', 'callback' => array( $this, 'api_kill_updater' ) );
		$endpoints[] = array( 'endpoint' => 'utility-fix-database', 'method' => 'POST', 'callback' => array( $this, 'api_fix_database' ) );
		return $endpoints;
	}
public function register_api_endpoints ( $ endpoints , Api $ api ) { $ endpoints [ ] = array ( 'endpoint' => 'systeminfo' , 'method' => 'GET' , 'callback' => array ( $ this , 'api_get_systeminfo' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-clear-transients' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_clear_transients' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-delete-orphaned-question-tags' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_delete_orphaned_question_tags' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-delete-orphaned-units' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_delete_orphaned_units' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-manually-upgrade-courses' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_manually_upgrade_courses' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-reset-roles' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_reset_roles_and_caps' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-reset-tracking' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_reset_tracking_optin' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-send-tracking' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_send_tracking_data' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-run-updater' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_run_updater' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-kill-updater' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_kill_updater' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'utility-fix-database' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_fix_database' ) ) ; return $ endpoints ; }
Register Settings Api Endpoints.
Register Settings Api Endpoints .