' . __( 'Click here', 'brigsby' ) . '' : $hoot_cta; $hoot_cta_top = ( empty( $hoot_cta_top ) ) ? $hoot_cta : $hoot_cta_top; $hoot_intro = ( !empty( $hoot_intro ) && is_array( $hoot_intro ) ) ? $hoot_intro : array(); $hoot_intro = wp_parse_args( $hoot_intro, array( 'name' => __('Upgrade to Premium', 'brigsby'), 'desc' => '', ) ); ?>

' . $hoot_cta_demo . '

'; ?>
$feature ) : ?>

$sm ) { if ( $sm[2] == $menu_slug ) { $index = $key; break; } } if ( ! empty( $index ) ) { //$item = $submenu['themes.php'][ $index ]; //unset( $submenu['themes.php'][ $index ] ); //array_splice( $submenu['themes.php'], 1, 0, array($item) ); /* array_splice does not preserve numeric keys, so instead we do our own rearranging. */ $smthemes = array(); foreach ( $submenu['themes.php'] as $key => $sm ) { if ( $key != $index ) { $setkey = $key; for ( $i = $key; $i < 1000; $i++ ) { if( !isset( $smthemes[$i] ) ) { $setkey = $i; break; } } $smthemes[ $setkey ] = $sm; if ( $sm[2] == 'themes.php' ) { $smthemes[ $setkey + 1 ] = $submenu['themes.php'][ $index ]; } } } $submenu['themes.php'] = $smthemes; } } add_action( 'admin_menu', 'hoot_appearance_subpage_reorder', 9999 );