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
+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 );
}