Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 11:49
Show Gist options
  • Save yuriinalivaiko/3bd9f402bd62b598345c8d0648629bb8 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/3bd9f402bd62b598345c8d0648629bb8 to your computer and use it in GitHub Desktop.
Hook um_core_form_meta_all
<?php
/**
* Hook: um_core_form_meta_all
*
* Type: filter
*
* Description: Extend UM forms meta keys.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/class-config.php#L230
* @link https://docs.ultimatemember.com/article/1087-umcoreformmetaall
*
* @package um
* @see um\Config::__construct()
* @since 2.0
* @version 3.0
*
* @param array $meta UM forms meta.
*
* @return array UM forms meta.
*/
function my_core_form_meta_all( $meta ) {
// your code here.
return $meta;
}
add_filter( 'um_core_form_meta_all', 'my_core_form_meta_all', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment