Legend, thanks for clarifying. Love your work!
Hey Jeff, thanks for the confirmation and speedy reply! I suspected this was the case.
To clarify, would a shortcode work in place of a PHP script/section today or would support for this need to be added in?
I’ve used the below code on another site previously to provide the WP user ID under [userid] which may help others looking for similar functionality.
// Output User ID
function user_id( ) {
$current_user = wp_get_current_user();
return $current_user->ID;
}
add_shortcode( 'userid', 'user_id' );