How to use PHP code In a Plugin's Short Code on Wordpress -


the shortcode is:

[sp-client-document-manager uid=] 

uid= need display wp user id display user files.

i using wp plugin (ultimate member) can pull user id profile page using code:

$profile_id = um_profile_id(); 

i tried along sever other variations:

[sp-client-document-manager uid=$profile_id = um_profile_id();] 

to see shortcode output, must use do_shorcode function , update last line below:

$profile_id = um_profile_id(); echo do_shortcode("[sp-client-document-manager uid='$profile_id']"); 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -