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 #


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

Default value: false


(string) (Optional) Meta key to check.

Default value: ''


(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 #

Version Description
3.0.4 Introduced.