PUM_Shortcode::_subtabs()


Description Description


Source Source

File: classes/Shortcode.php

	public function _subtabs() {
		$subtabs = $this->version >= 2 && method_exists( $this, 'subtabs' ) ? $this->subtabs() : false;

		foreach ( $this->_tabs() as $tab_id => $tab_label ) {
			if ( empty( $subtabs[ $tab_id ] ) || ! is_array( $subtabs[ $tab_id ] ) ) {
				$subtabs[ $tab_id ] = array(
					'main' => $tab_label,
				);
			}
		}

		return apply_filters( 'pum_shortcode_subtabs', $subtabs, $this->tag() );
	}


Top ↑

User Contributed Notes User Contributed Notes

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