rgpost

The Gravity Forms + Stripe rgpost function.

Description

(mixed|string) rgpost( (string) $name, (bool) $do_stripslashes = true ); 

Returns (mixed|string)

Parameters (2)

0. $name (string)
The name.
1. $do_stripslashes — Optional. (bool) => true
The do stripslashes.

Usage

  1. if ( !function_exists( 'rgpost' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-stripe/includes/gf-utility-functions.php'; 
  3.  
  4. // The name. 
  5. $name = ''; 
  6.  
  7. // The do stripslashes. 
  8. $do_stripslashes = true; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = rgpost($name, $do_stripslashes); 
  12.  

Defined (1)

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

/includes/gf-utility-functions.php  
  1. function rgpost ( $name, $do_stripslashes = true ) { 
  2. if ( isset( $_POST[$name] ) ) { 
  3. return $do_stripslashes ? stripslashes_deep( $_POST[$name] ) : $_POST[$name]; 
  4.  
  5. return '';