GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Register oEmbed handlers for embedding GravityView data and render that data. More...
Public Member Functions | |
add_provider () | |
Become an oEmbed provider for GravityView. More... | |
get_entry_id () | |
Get the entry id for the current oEmbedded entry. More... | |
initialize () | |
register_handler () | |
Register the oEmbed handler. More... | |
render_handler ( $matches, $attr, $url, $rawattr) | |
render_provider_request () | |
Output a response as a provider for an entry oEmbed URL. More... | |
set_single_entry_id ( $is_single_entry=false) | |
Tell get_gravityview() to display a single entry. More... | |
Static Public Member Functions | |
static | getInstance () |
Static Public Attributes | |
static | $instance = NULL |
Protected Attributes | |
$entry_id = NULL | |
Private Member Functions | |
__construct () | |
Register oEmbed handlers for embedding GravityView data and render that data.
Definition at line 22 of file class-oembed.php.
|
private |
Definition at line 27 of file class-oembed.php.
add_provider | ( | ) |
Become an oEmbed provider for GravityView.
Definition at line 72 of file class-oembed.php.
References gravityview().
get_entry_id | ( | ) |
Get the entry id for the current oEmbedded entry.
Definition at line 102 of file class-oembed.php.
References $entry_id, and gravityview().
|
static |
Definition at line 42 of file class-oembed.php.
References gravityview().
Referenced by GravityView_Edit_Entry_Render\user_can_edit_entry().
initialize | ( | ) |
Definition at line 32 of file class-oembed.php.
References gravityview().
register_handler | ( | ) |
Register the oEmbed handler.
Definition at line 60 of file class-oembed.php.
References gravityview().
render_handler | ( | $matches, | |
$attr, | |||
$url, | |||
$rawattr | |||
) |
array | $matches | The regex matches from the provided regex when calling wp_embed_register_handler() |
array | $attr | Embed attributes. |
string | $url | The original URL that was matched by the regex. |
array | $rawattr | The original unmodified attributes. |
Definition at line 119 of file class-oembed.php.
References gravityview().
render_provider_request | ( | ) |
Output a response as a provider for an entry oEmbed URL.
For now we only output the JSON format and don't care about the size (width, height). Our only current use-case is for it to provide output to the Add Media / From URL box in WordPress 4.8.
Definition at line 89 of file class-oembed.php.
References gravityview().
set_single_entry_id | ( | $is_single_entry = false | ) |
Tell get_gravityview() to display a single entry.
REQUIRED FOR THE VIEW TO OUTPUT A SINGLE ENTRY
bool | int | $is_single_entry | Existing single entry. False, because GV thinks we're in a post or page. |
Definition at line 135 of file class-oembed.php.
References $entry_id, and gravityview().
|
protected |
Definition at line 23 of file class-oembed.php.
Referenced by get_entry_id(), and set_single_entry_id().
|
static |
Definition at line 25 of file class-oembed.php.