LLMS_REST_Fields::remove_author_assign_link( WP_REST_Response $res )

Remove the author assign action link for llms_my_certificate REST responses.

Description Description

This is a hack put in place to prevent the default control component cannot be disabled in any other way I can find, the check in place on it determines if the control can be displayed based on the presence of this link in the REST response.

Removing this probably isn’t generally idea but I cannot conceive of any other way to handle this.

Top ↑

Parameters Parameters


(WP_REST_Response) (Required) Rest response.

Top ↑

Return Return


Top ↑

Source Source

File: includes/class-llms-rest-fields.php

	public function remove_author_assign_link( $res ) {

		$res->remove_link( 'https://api.w.org/action-assign-author' );

		return $res;


Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.