Added docs

This commit is contained in:
Mykyta Synelnikov
2025-05-12 13:25:24 +03:00
parent 9d83fba560
commit b3242fe9b0
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -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.
+10
View File
@@ -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 );
}