LLMS_Blocks_Post_Instructors::authorize_callback( bool $allowed, string $meta_key, int $object_id, int $user_id, string $cap, array $caps )

Meta field update authorization callback.

Parameters Parameters


(bool) (Required) Is the update allowed.


(string) (Required) Meta keyname.


(int) (Required) WP Object ID (post,comment,etc)...


(int) (Required) WP User ID.


(string) (Required) requested capability.


(array) (Required) user capabilities.

Top ↑

Return Return


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-post-instructors.php

	public function authorize_callback( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ) {
		return user_can( $user_id, 'edit_post', $object_id );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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