33 public function get(
$view = null ) {
39 return $this->
get(
$view->ID );
45 if ( is_numeric(
$view ) ) {
46 return \GV\View::by_id(
$view );
52 if (
$view instanceof \WP_Post ) {
53 return \GV\View::from_post(
$view );
59 if ( is_array(
$view ) && ! empty(
$view[
'id'] ) ) {
60 return $this->
get(
$view[
'id'] );
66 if ( is_null(
$view ) ) {
73 if ( $post instanceof \WP_Post && $post->post_type ==
'gravityview' ) {
74 return $this->
get(
$post );
This file contains magic wrapper code for gravityview().
If this file is called directly, abort.
gravityview()
The main GravityView wrapper function.