WordPress Screen options does not show any fields

Ok, found it. Not really WordPress related but might be helpful to someone anyway. It was my browser ad blocker plugin. Apparently it adds CSS to pages upon loading. The CSS showed as “inline” in the dev tools inspector but didn’t show at all when viewing page source code. When checking the CSS of the … Read more

WordPress Admin Menu Order for ‘admin.php’ pages

Instead of this: return array( ‘index.php’, // Dashboard ‘separator1’, // –Space– ‘edit.php?post_type=page’, // Pages ‘edit.php’, // Posts ‘edit.php?post_type=portfolio’, // Portfolio ‘admin.php?page=wpcf7’, // Contact Form 7 ‘upload.php’, // Media ‘edit-comments.php’, // Comments ); try this: return array( ‘index.php’, // Dashboard ‘separator1’, // –Space– ‘edit.php?post_type=page’, // Pages ‘edit.php’, // Posts ‘portfolio’, // Portfolio ‘wpcf7’, // Contact Form … Read more

Accidentally changed website url

So you do not know the url what you changed? If so, then follow these steps Go to the phpmyadmin go to the options table search for this option_name siteurl then you can know what you changed then using that url you can login then change it back

Change Name of Category Heading in New Post

You can handle the wp_taxonomies object during init action. Then you can change the default labels for the categories and posts tags. function wpse292282_rename_default_taxonomies() { global $wp_taxonomies; // Update datas for Category $labels = &$wp_taxonomies[‘category’]->labels; $labels->name=”Sector”; $labels->singular_name=”Sector”; $labels->add_new = ‘Add Sector’; $labels->add_new_item = ‘Add Sector’; $labels->edit_item = ‘Edit Sector’; $labels->new_item = ‘Sector’; $labels->view_item = ‘View … Read more

Hide admin notice when user profile updated

You can simply check each of user meta details to see if they are blank or not. The code below is yours with with a check for first and last name. function wpse_user_welcome_notice() { // Make sure that the user is assigned to the subscriber role, specifically. $user = wp_get_current_user(); if ( !in_array( ‘subscriber’, $user->roles … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)