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
Removing this probably isn’t generally idea but I cannot conceive of any other way to handle this.
Parameters Parameters
- $res
-
(WP_REST_Response) (Required) Rest response.
Return Return
(WP_REST_Response)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |