Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriinalivaiko/b03955fa2c9481f92b3166616011f3b8 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/b03955fa2c9481f92b3166616011f3b8 to your computer and use it in GitHub Desktop.
Hook um_form_fields_textarea_settings
<?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