GravityView  2.1.1
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 Katz Web Services, Inc.
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  * @access public
24  * @deprecated
25  * @see \GV\View::register_post_type
26  * @return void
27  */
28  public static function init_post_types() {
29  return \GV\View::register_post_type();
30  }
31 
32  /**
33  * Register rewrite rules to capture the single entry view
34  *
35  * @access public
36  * @deprecated
37  * @see \GV\Entry::add_rewrite_endpoint
38  * @return void
39  */
40  public static function init_rewrite() {
41  return \GV\Entry::add_rewrite_endpoint();
42  }
43 
44  /**
45  * Return the query var / end point name for the entry
46  *
47  * @access public
48  * @deprecated
49  * @see \GV\Entry::get_endpoint_name
50  * @return string Default: "entry"
51  */
52  public static function get_entry_var_name() {
53  return \GV\Entry::get_endpoint_name();
54  }
55 }
56 
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 init_rewrite()
Register rewrite rules to capture the single entry view.