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
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
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_Abstract_Provider::shortcode_tabs( array $tabs = array() )
Adds a tab for each provider. These will be hidden except for the chosen provider.
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
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
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
Parameters Parameters
- $tabs
-
(Optional) Array of tab.
Default value: array()
Return Return
(array)
Source Source
File: classes/Abstract/Provider.php
public function shortcode_tabs( $tabs = array() ) { $resorted_tabs = array(); foreach ( $tabs as $tab_id => $label ) { $resorted_tabs[ $tab_id ] = $label; if ( 'general' == $tab_id ) { $resorted_tabs[ $this->shortcode_tab_id() ] = $this->name; } } return $resorted_tabs; }
Expand full source code Collapse full source code View on Trac