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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -