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_Shortcode_Subscribe::resort_provider_tabs( array $tabs = array() )
Sorts tabs so that providers come first.
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)
Default value: array()
Return Return
(array)
Source Source
File: classes/Shortcode/Subscribe.php
public function resort_provider_tabs( $tabs = array() ) { $sorted_tabs = $tabs; foreach ( $tabs as $tab_id => $tab ) { if ( strpos( $tab_id, 'provider_' ) === 0 ) { PUM_Utils_Array::move_item( $sorted_tabs, $tab_id, 'down', 'general' ); } } return $sorted_tabs; }
Expand full source code Collapse full source code View on Trac