Shortcode_Abstract::get_argument( $index, $default = null )
{@inheritDoc}
Source
File: src/Tribe/Shortcode/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.12.0 * * @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_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.12.0 * * @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_shortcode_{$registration_slug}_argument", $argument, $index, $default, $this ); return $argument; }