learndash_is_protected_meta

learndash_is_protected_meta( boolean $protected = false,  string $meta_key = '',  string $meta_type = '' )

Prevents Custom Fields meta box from showing/saving LD keys.


Description #

Fires on is_protected_meta hook.


Parameters #

$protected

(boolean) (Optional) Whether to protect the meta.

Default value: false

$meta_key

(string) (Optional) Meta key to check.

Default value: ''

$meta_type

(string) (Optional) The type of the meta.

Default value: ''


Return #

(boolean) Returns true if the meta is protected otherwise false.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
3.0.4 Introduced.