Created
November 4, 2022 13:17
-
-
Save yuriinalivaiko/b03955fa2c9481f92b3166616011f3b8 to your computer and use it in GitHub Desktop.
Hook um_form_fields_textarea_settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hook: um_form_fields_textarea_settings | |
* | |
* Type: filter | |
* | |
* Description: Change WP Editor options for textarea init. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-fields.php#L2737 | |
* @link https://docs.ultimatemember.com/article/1134-umformfieldstextareasettings | |
* | |
* @package um\core | |
* @see um\core\Fields::edit_field() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param array $textarea_settings WP Editor settings. | |
* | |
* @return array WP Editor settings. | |
*/ | |
function my_textarea_settings( $textarea_settings ) { | |
// your code here. | |
return $textarea_settings; | |
} | |
add_filter( 'um_form_fields_textarea_settings', 'my_textarea_settings', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment