Tribe_Events::get_database_arguments( string $shortcode_id = null )
Fetches from the database the params of a given shortcode based on the ID created.
Contents
Parameters
- $shortcode_id
-
(string) (Optional) The shortcode identifier, or
nullto use the current one.Default value: null
Return
(array) Array of params configuring the Shortcode.
Source
File: src/Tribe/Views/V2/Shortcodes/Tribe_Events.php
public function get_database_arguments( $shortcode_id = null ) {
$shortcode_id = $shortcode_id ?: $this->get_id();
$transient_key = static::TRANSIENT_PREFIX . $shortcode_id;
$transient_arguments = get_transient( $transient_key );
return $transient_arguments;
}
Changelog
| Version | Description |
|---|---|
| 4.7.9 | Introduced. |