LLMS_Form_Post_Type::meta_auth_callback( bool $allowed, string $meta_key, int $object_id, int $user_id, string $cap, array $caps )

Meta field update authorization callback.


Parameters Parameters

$allowed

(bool) (Required) Is the update allowed.

$meta_key

(string) (Required) Meta keyname.

$object_id

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

$user_id

(int) (Required) WP User ID.

$cap

(string) (Required) Requested capability.

$caps

(array) (Required) User capabilities.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/forms/class-llms-form-post-type.php

	public function meta_auth_callback( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ) {
		return user_can( $user_id, $this->capability, $object_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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