New answers tagged

0

I don't have a definitive answer for you, but I had a quick look at some of the upgrade code and noticed that a very old upgrade function rewrites the post_name using the sanitize_title function, and that calls sanitize_title_with_dashes, and that contains this bit of code: if ( seems_utf8( $title ) ) { if ( function_exists( 'mb_strtolower' ) ) { ...


0

For multiple Custom Post Types adjust like this $query->set( 'post_type', array( 'post', 'custom1', 'page' ) && array( 'post', 'custom2', 'page' ) );


0

If your submenu is missing the admin.php?page= prefix, you should register the parent menu first, then the submenu. add_action( 'admin_menu', function() { // Parent menu first add_menu_page( 'Page title', 'Menu Title', 'capability', 'parent-slug', 'callback' ); // Then the submenus add_submenu_page( 'parent-slug', 'Submenu Page Title', 'Submenu Title', '...


Top 50 recent answers are included