GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-post-types.php
Go to the documentation of this file.
1 <?php
2 /**
3  * GravityView Defining Post Types and Rewrite rules
4  *
5  * @package GravityView
6  * @license GPL2+
7  * @author GravityView <[email protected]>
8  * @link http://gravityview.co
9  * @copyright Copyright 2014, Katz Web Services, Inc.
10  * @deprecated
11  *
12  * @since 1.0.9
13  */
14 
16 
17  function __construct() {
18  }
19 
20  /**
21  * Init plugin components such as register own custom post types
22  *
23  * @deprecated
24  * @see \GV\View::register_post_type
25  * @return void
26  */
27  public static function init_post_types() {
29  }
30 
31  /**
32  * Register rewrite rules to capture the single entry view
33  *
34  * @deprecated
35  * @see \GV\Entry::add_rewrite_endpoint
36  * @return void
37  */
38  public static function init_rewrite() {
40  }
41 
42  /**
43  * Return the query var / end point name for the entry
44  *
45  * @deprecated
46  * @see \GV\Entry::get_endpoint_name
47  * @return string Default: "entry"
48  */
49  public static function get_entry_var_name() {
50  return \GV\Entry::get_endpoint_name();
51  }
52 }
53 
new GravityView_Post_Types
static get_entry_var_name()
Return the query var / end point name for the entry.
__construct()
static init_post_types()
Init plugin components such as register own custom post types.
static register_post_type()
Register the gravityview WordPress Custom Post Type.
static add_rewrite_endpoint()
Adds the necessary rewrites for single Entries.
static init_rewrite()
Register rewrite rules to capture the single entry view.