Last active
May 29, 2023 15:48
-
-
Save wp-seopress/ad3b66f91de26a8cf6ab3513a6e21cfe to your computer and use it in GitHub Desktop.
Filter %%_ucf_your_user_meta%% dynamic variable
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
add_filter('seopress_titles_user_meta', 'sp_titles_user_meta', 10, 2); | |
function sp_titles_user_meta($user_meta_value, $user_meta_key) { | |
//do your stuff | |
//$user_meta_value = esc_attr(get_user_meta(get_current_user_id(), $user_meta_key, true)); | |
return $user_meta_value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment