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

The default GravityView View class. More...

Static Public Member Functions

static register_post_type ()
 Register the gravityview WordPress Custom Post Type. More...
 

Detailed Description

The default GravityView View class.

Houses all base View functionality.

Definition at line 13 of file class-gv-view.php.

Member Function Documentation

static register_post_type ( )
static

Register the gravityview WordPress Custom Post Type.

Register only once

Runs Filter:
gravityview_is_hierarchical Make GravityView Views hierarchical by returning TRUE This will allow for Views to be nested with Parents and also allows for menu order to be set in the Page Attributes metabox
Since
1.13
Parameters
boolean$is_hierarchicalDefault: false
Runs Filter:
gravityview_post_type_supports Modify post type support values for gravityview post type
See also
add_post_type_support()
Since
1.15.2
Parameters
array$supportsArray of features associated with a functional area of the edit screen. Default: 'title', 'revisions'. If $is_hierarchical, also 'page-attributes'
[in]boolean$is_hierarchicalDo Views support parent/child relationships? See gravityview_is_hierarchical filter.

Register Custom Post Type - gravityview

Runs Filter:
gravityview_direct_access Should Views be directly accessible, or only visible using the shortcode?
See also
https://codex.wordpress.org/Function_Reference/register_post_type#public
Since
1.15.2
Parameters
[in,out]booleantrue: allow Views to be accessible directly. false: Only allow Views to be embedded via shortcode. Default: true
int$view_idThe ID of the View currently being requested. 0 for general setting
Runs Filter:
gravityview_has_archive Enable Custom Post Type archive?
Since
1.7.3
Parameters
booleanFalse: don't have frontend archive; True: yes, have archive. Default: false
Runs Filter:
gravityview_slug Modify the url part for a View.
See also
http://docs.gravityview.co/article/62-changing-the-view-slug
Parameters
string$slugThe slug shown in the URL

Definition at line 21 of file class-gv-view.php.

References $labels, gravityview(), and GravityView_Admin\no_views_text().


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