GravityView  2.1.1
The best, easiest way to display Gravity Forms entries on your website.
Static Public Member Functions
Admin_Request Class Reference

If this file is called directly, abort. More...

Inheritance diagram for Admin_Request:
Request

Static Public Member Functions

static is_admin ()
 Check if WordPress is_admin(), and whether we have a GravityView page. More...
 
- Static Public Member Functions inherited from Request
static is_add_oembed_preview ()
 Is this the Add Media / From URL preview request? More...
 
static is_admin ()
 Check if WordPress is_admin(), and make sure not DOING_AJAX. More...
 
static is_ajax ()
 Is this an AJAX call in progress? More...
 
static is_frontend ()
 This is the frontend. More...
 
static is_rest ()
 Is this a REST request? Call after parse_request. More...
 

Additional Inherited Members

- Public Member Functions inherited from Request
 __construct ()
 
 is_edit_entry ( $form_id=0)
 Checks whether this an edit entry request. More...
 
 is_entry ( $form_id=0)
 Checks whether this is a single entry request. More...
 
 is_search ()
 Checks whether this an entry search request. More...
 
 is_view ()
 The current $post is a View, no? More...
 

Detailed Description

If this file is called directly, abort.

The default Dashboard Request class.

Definition at line 12 of file class-gv-request-admin.php.

Member Function Documentation

◆ is_admin()

static is_admin ( )
static

Check if WordPress is_admin(), and whether we have a GravityView page.

Returns
bool If is in an admin context or not.

Accepts optional $hook and $context arguments.

Returns
bool|string If false, not a GravityView page. true if $page is passed and is the same as current page. Otherwise, the name of the page (single, settings, or views)

Regular check.

Assume false by default.

Runs Filter:
gravityview_is_admin_page Is the current admin page a GravityView-related page?
Parameters
[in,out]string | bool$is_pageIf false, no. If string, the name of the page (single, settings, or views)
[in]string$hookThe name of the page to check against. Is passed to the method.

Definition at line 21 of file class-gv-request-admin.php.

References Utils\get().


The documentation for this class was generated from the following file: