RG_CURRENT_PAGE

The Gravity Forms RG CURRENT PAGE constant.

Value (string)

basename( $_SERVER['PHP_SELF'] ) 

Usage

  1. if ( defined( 'RG_CURRENT_PAGE' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'RG_CURRENT_PAGE' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

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

/gravityforms.php  
  1. define( 'RG_CURRENT_PAGE', basename( $_SERVER['PHP_SELF'] ) );