diff --git a/includes/core/class-builtin.php b/includes/core/class-builtin.php index 47ae9bf2..eeb735cf 100644 --- a/includes/core/class-builtin.php +++ b/includes/core/class-builtin.php @@ -196,6 +196,8 @@ if ( ! class_exists( 'um\core\Builtin' ) ) { /** * Checks for a blacklist function in the custom callback field error. * + * @since 2.10.4 + * * @param array $args Custom field submission data. * * @return int|string Empty or error string. diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 6ca549b1..7ad67b6f 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -1402,6 +1402,16 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $blacklist = array_merge( $blacklist, $um_wp_native_functions_list ); } + /** + * Filters the blacklist of the functions that cannot be used as custom callback for dropdown field to populate the options. + * + * @since 2.5.1 + * @hook um_dropdown_options_source_blacklist + * + * @param {array} $blacklist Functions blacklist. + * + * @return {array} Functions blacklist. + */ return apply_filters( 'um_dropdown_options_source_blacklist', $blacklist ); }