![]() |
GravityView
2.1.1
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
callback ( $atts, $content=null) | |
Process and output the [gventry] shortcode. More... | |
![]() | |
callback ( $atts, $content=null) | |
The WordPress Shortcode API callback for this shortcode. More... | |
Data Fields | |
$name = 'gventry' | |
![]() | |
$atts | |
$content | |
$name | |
Additional Inherited Members | |
![]() | |
static | add () |
Register this shortcode class with the WordPress Shortcode API. More... | |
static | parse ( $content) |
Parse a string of content and figure out which ones there are. More... | |
static | remove () |
Unregister this shortcode. More... | |
If this file is called directly, abort.
The [gventry] shortcode.
Definition at line 12 of file class-gv-shortcode-gventry.php.
callback | ( | $atts, | |
$content = null |
|||
) |
Process and output the [gventry] shortcode.
array | $atts | The attributes passed. |
string | $content | The content inside the shortcode. |
gravityview/shortcodes/gventry/atts
Filter the [gventry] shortcode attributes. array | $atts | The initial attributes. |
Since we're using shorthand initialization we have to reverse the order parameters here.
Reverse existing sorts.
Otherwise, sort by date_created.
If a sort already exists, reverse it.
Otherwise, sort by date_created
This View has no data source. There's nothing to show really. ...apart from a nice message if the user can do anything about it.
Private, pending, draft, etc.
Unapproved entries.
Remove the back link.
gravityview/shortcodes/gventry/output
Filter the [gventry] output. string | $output | The output. |
\GV\View | null | $view | The View detected or null. |
\GV\Entry | null | $entry | The Entry or null. |
Definition at line 26 of file class-gv-shortcode-gventry.php.
References Shortcode\$atts, $entries, $entry, $filter, $form_id, $output, Entry_Sort\ASC, GF_Entry\by_id(), Internal_Field\by_id(), View\by_id(), Entry_Sort\DESC, gravityview(), gv_map_deep(), GVCommon\has_cap(), GravityView_Entry_Approval_Status\is_approved(), GravityView_Entry_Approval\meta_key, Entry_Sort\NUMERIC, and Entry_Sort\RAND.
$name = 'gventry' |
Definition at line 16 of file class-gv-shortcode-gventry.php.