rgpost
The WordPress Core rgpost function.
Description
Returns (mixed|string)
Parameters (2)
- 0. $name (string)
- The name.
- 1. $do_stripslashes — Optional. (bool) =>
true
- The do stripslashes.
Usage
if ( !function_exists( 'rgpost' ) ) { require_once '/lib/gf-utility-functions.php'; } // The name. $name = ''; // The do stripslashes. $do_stripslashes = true; // NOTICE! Understand what this does before running. $result = rgpost($name, $do_stripslashes);
Defined (1)
The function is defined in the following location(s).
- /lib/gf-utility-functions.php
- function rgpost ( $name, $do_stripslashes = true ) {
- if ( isset( $_POST[$name] ) )
- return $do_stripslashes ? stripslashes_deep( $_POST[$name] ) : $_POST[$name];
- return '';
- }