Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Shortcode::defaults()

Array of default attribute values.


Description Description


Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808

Return Return

(array)


Top ↑

Source Source

File: classes/Shortcode.php

	public function defaults() {
		$defaults = array();

		$fields = PUM_Admin_Helpers::flatten_fields_array( $this->fields() );

		foreach ( $fields as $key => $field ) {
			$defaults[ $key ] = isset( $field['std'] ) ? $field['std'] : null;
		}

		return apply_filters( 'pum_shortcode_defaults', $defaults, $this );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.