Shortcode_Abstract::get_default_arguments()

{@inheritDoc}


Source #

File: src/Tribe/Shortcode/Shortcode_Abstract.php

	public function get_default_arguments() {
		/**
		 * Applies a filter to instance default arguments.
		 *
		 * @since   4.12.0
		 *
		 * @param  array  $default_arguments  Current set of default arguments.
		 * @param  static $instance           Which instance of shortcode we are dealing with.
		 */
		$default_arguments = apply_filters( 'tribe_shortcode_default_arguments', $this->default_arguments, $this );

		$registration_slug = $this->get_registration_slug();

		/**
		 * Applies a filter to instance default arguments based on the registration slug of the shortcode.
		 *
		 * @since   4.12.0
		 *
		 * @param  array  $default_arguments   Current set of default arguments.
		 * @param  static $instance            Which instance of shortcode we are dealing with.
		 */
		$default_arguments = apply_filters( "tribe_shortcode_{$registration_slug}_default_arguments", $default_arguments, $this );

		return $default_arguments;
	}