![]() |
GravityView
2.17
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='', $tag='') | |
| Process and output the [gvfield] shortcode. More... | |
Public Member Functions inherited from Shortcode | |
| callback ( $atts, $content='', $tag='') | |
| The WordPress Shortcode API callback for this shortcode. More... | |
Data Fields | |
| $name = 'gvfield' | |
Data Fields inherited from Shortcode | |
| $atts | |
| $content | |
| $name | |
Additional Inherited Members | |
Static Public Member Functions inherited from Shortcode | |
| static | add ( $name=null) |
| 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 [gvfield] shortcode.
Definition at line 12 of file class-gv-shortcode-gvfield.php.
| callback | ( | $atts, | |
$content = '', |
|||
$tag = '' |
|||
| ) |
Process and output the [gvfield] shortcode.
| array | $passed_atts | The attributes passed. |
| string | $content | The content inside the shortcode. |
| string | $tag | The shortcode tag. |
gravityview/shortcodes/gvfield/atts Filter the [gvfield] 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.
gravityview/shortcodes/gvfield/output Filter the [gvfield] output. | string | $output | The output. |
| \GV\View | null | $view | The View detected or null. |
| \GV\Entry | null | $entry | The Entry or null. |
| \GV\Field | null | $field | The Field or null. |
Definition at line 27 of file class-gv-shortcode-gvfield.php.
References $args, Shortcode\$atts, $entries, $entry, $field, $form_id, $output, Entry_Sort\ASC, GF_Entry\by_id(), Internal_Field\by_id(), GF_Field\by_id(), View\by_id(), Entry_Sort\DESC, endswitch, Plugin\FEATURE_GFQUERY, 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 = 'gvfield' |
Definition at line 16 of file class-gv-shortcode-gvfield.php.