Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:00
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/dc7238ba2843b75df05573cbffc39f5b to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/dc7238ba2843b75df05573cbffc39f5b to your computer and use it in GitHub Desktop.
Hook um_form_official_classes__hook
<?php
/**
* Hook: um_form_official_classes__hook
*
* Type: filter
*
* Description: Change official form classes.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-shortcodes.php#L349
* @link https://docs.ultimatemember.com/article/1135-umformofficialclasseshook
*
* @package um\core
* @see um\core\Shortcodes::get_class()
* @since 2.0
* @version 3.0
*
* @param string $classes Classes string.
*
* @return string Classes string.
*/
function my_form_official_classes( $classes ) {
// your code here.
return $classes;
}
add_filter( 'um_form_official_classes__hook', 'my_form_official_classes', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment