<content>

The Google Locker for WordPress content shortcode.


Usage

  1. // assign value 
  2. $content = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$content]"); 
  1. // assign value 
  2. $content = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$content]"); 
  6. echo $result;  

Defined (2)

The shortcode is defined in the following location(s).

/admin/shortcode.php  
  1. $type = strtolower( $type );  
  2. $postID = get_the_ID(); 
  3.  
  4. // Check Cookies 
  5. if ( $type == 'social' && $_COOKIE["g_locker_social"] == 'true') { 
  6. return do_shortcode( $content ); 
  7. else if ( $type == 'content' && $_COOKIE["g_locker_" . $postID . "_content"] == 'true') { 
  8. return do_shortcode( $content ); 
  9. else { 
  1. $type = strtolower( $type );  
  2. $postID = get_the_ID(); 
  3.  
  4. // Check Cookies 
  5. if ( $type == 'social' && $_COOKIE["g_locker_social"] == 'true') { 
  6. return do_shortcode( $content ); 
  7. else if ( $type == 'content' && $_COOKIE["g_locker_" . $postID . "_content"] == 'true') { 
  8. return do_shortcode( $content ); 
  9. else {