WP Admin messed up

It seems like you have pluign updates as well, have you tried them and see if it changes? Also you can inspect the html code and see which css is causing the size of the images, on the browser’s dev console, usually available on right click on any page.

ajax response not recieving

As per jQuery documentation, dataType: ‘json’ is supported. That is the thing that is being returned and parsed by jQuery to your success function. There is more information needed to resolve your issue. Does pin_shop.ajax_url properly resolve to //site.com/wp-admin/admin-ajax.php? If not, there’s your first problem. (To check this, console.log(ajax_url); just before your $.ajax call. I … Read more

How to transform WordPress user role code to WP shortcode?

You can add a parameter to your shortcode function and use this value to check if the user is allowed to view the content: function func_check_user_role( $atts, $content = null ) { $user = wp_get_current_user(); $user_role = $atts[‘role’]; $allowed_roles = []; array_push($allowed_roles , $user_role); if ( is_user_logged_in() && array_intersect($allowed_roles, $user->roles ) ) { return $content; … Read more

How to add more default colors?

You should be able to add more colors using the add_theme_support function as per the docs here add_theme_support( ‘editor-color-palette’, array( array( ‘name’ => __( ‘strong magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘strong-magenta’, ‘color’ => ‘#a156b4’, ), array( ‘name’ => __( ‘light grayish magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘light-grayish-magenta’, ‘color’ => ‘#d0a5db’, ), array( ‘name’ => __( … Read more