Created
November 4, 2022 11:49
-
-
Save yuriinalivaiko/3bd9f402bd62b598345c8d0648629bb8 to your computer and use it in GitHub Desktop.
Hook um_core_form_meta_all
This file contains hidden or 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_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