Shortcode_Abstract::get_argument( $index, $default = null )
{@inheritDoc}
Source
File: src/Tribe/Views/V2/Shortcodes/Shortcode_Abstract.php
public function get_argument( $index, $default = null ) {
$arguments = $this->get_arguments();
$argument = Arr::get( $arguments, $index, $default );
/**
* Applies a filter to a specific shortcode argument, catch all for all shortcodes..
*
* @since 4.7.5
*
* @param mixed $argument The argument.
* @param array $index Which index we indent to fetch from the arguments.
* @param array $default Default value if it doesnt exist.
* @param static $instance Which instance of shortcode we are dealing with.
*/
$argument = apply_filters( 'tribe_events_pro_shortcode_argument', $argument, $index, $default, $this );
$registration_slug = $this->get_registration_slug();
/**
* Applies a filter to a specific shortcode argument, to a particular registration slug.
*
* @since 4.7.5
*
* @param mixed $argument The argument value.
* @param array $index Which index we indent to fetch from the arguments.
* @param array $default Default value if it doesnt exist.
* @param static $instance Which instance of shortcode we are dealing with.
*/
$argument = apply_filters( "tribe_events_pro_shortcode_{$registration_slug}_argument", $argument, $index, $default, $this );
return $argument;
}