= 2 || $page >= 2 ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'multishop' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'multishop_wp_title', 10, 2 ); /** * Add default menu style if menu is not set from the backend. */ function multishop_add_menuid ($page_markup) { preg_match('/^
/i', $page_markup, $multishop_matches); $multishop_divclass = ''; if(!empty($multishop_matches)) { $multishop_divclass = $multishop_matches[1]; } $multishop_toreplace = array('
', '
'); $multishop_replace = array(''); $multishop_new_markup = str_replace($multishop_toreplace,$multishop_replace, $page_markup); $multishop_new_markup= preg_replace('/