llms_current_user_can_edit_product( $product_id )
Verify if the current user can edit the given product id (course or membership).
Parameters Parameters
- $product_id
-
(Required)
Return Return
(bool)
Source Source
File: includes/llms.functions.core.php
function llms_current_user_can_edit_product( $product_id ) {
return current_user_can( 'edit_course', $product_id ) || current_user_can( 'edit_membership', $product_id );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 8.0.2 | Introduced. |