Order All Pages table in administration

There is no plugin for that. But you can achieve this by using filters. Add following code to you theme’s functions.php file: /** * Order Admin Page List by Date by Default */ add_filter(‘pre_get_posts’, ‘my_set_page_order_in_admin’ ); function my_set_page_order_in_admin( $wp_query ) { global $pagenow; if ( is_admin() && $_GET[‘post_type’] == ‘page’ && ‘edit.php’ == $pagenow && … Read more

Backend Checkboxes working – but not visual?

The answer for me was related to my web servers Content Security Policy. Needed to add “data:” as a possible source default-src data: ‘self’ *.googleapis.com *.gstatic.com; If you are using more specific CSPs like font-src: and img-src: you may also need to allow it within those as well.

WordPress Hacked 5.5 admin-ajax.php [closed]

Attempt to access the login page happen all the time. Not a big deal….assuming that you have proper protections. Like: Not having a user named ‘admin’ Not allowing enumeration of user names (so user names aren’t discoverable) Using strong passwords on all accounts, especially admin-level Using strong passwords on hosting, FTP, database, etc Disabling access … Read more

Change page name in admin list

You can use the_title hook to change the title of the post in the admin, something like this add_filter( ‘the_title’, ‘custom_post_title’, 10, 2 ); function custom_post_title( $title, $post_id ) { // Return early if not in the admin if ( !is_admin() ) return $title; $post_type = get_post_type( $post_id ); // You only need to change … Read more

Custom Post Type – Support “author” only for admins

Thanks to TomJNowell‘s help, this would be a possible working solution: $supports = array( ‘title’, ‘editor’ ); if(current_user_can(‘delete_plugins’)){ $supports[] = ‘author’; } register_post_type(‘whatever’, array( ‘labels’ => array( ‘name’ => ‘Whatever’, ‘singular_name’ => ‘Whatever’ ), ‘supports’ => $supports, ….

How to break line / add to ADMIN menu

<br> tags are not the solution to the problem that you were hoping they would be. Menu labels were never intended to contain arbitrary HTML. HTML does slip through in places, but this appears to be a bug and is inconsistent. For Post Types No. You can’t. $menu[ $ptype_menu_position ] = array( esc_attr( $ptype_obj->labels->menu_name ), … Read more