gl_current_page

The Google Locker for WordPress gl current page function.

Description

gl_current_page(); 

Usage

  1. if ( !function_exists( 'gl_current_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-locker-for-wordpress/admin/shortcode.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gl_current_page(); 
  7.  

Defined (1)

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

/admin/shortcode.php  
  1. function gl_current_page( ) { 
  2. // Get Post ID and URL 
  3. $postID = get_the_ID(); 
  4. $postURL = get_permalink( $postID ); 
  5. return $postURL;