Skip to content

Instantly share code, notes, and snippets.

@techies23 techies23/functions.php Secret
Last active Jun 9, 2016

What would you like to do?
* Temporary solution for zoom plugin wordpress; Shortcode for Loggedin Users
function calling_nested_shortcode($atts) {
$a = shortcode_atts( array(
'meeting_id' => '',
'class' => 'test',
'id' => 'test',
'title' =>'test',
), $atts );
//Check is user Logged in
if( is_user_logged_in() ) {
$link = do_shortcode( '[zoom_api_link meeting_id="'.$a['meeting_id'].'" class="'.$a['class'].'" id="'.$a['id'].'" title="'.$a['title'].'"]' );
} else {
$link = 'User Must be logged in to See the link';
return link;
add_shortcode( 'another_shortcode', 'calling_nested_shortcode' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.