Add link to All Options in Wordpress Admin Settings

Add link to All Options in Wordpress Admin Settings

WordPress have a secret options section that contains all core WordPress settings on one single page. Here’s a quick code snippet to display an “All Options” page to view otherwise hidden data. Just add that code to your theme’s functions.php file and then visit the settings menu in the WordPress admin panel. There you’ll see…

Show All Media Attachments to a Post

Show All Media Attachments to a Post

Prior to WordPress 3.6, we had to run a query to retrieve all media attachments to a specific post. We had to do something like this. // show all WordPress post attachments $args = array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => -1, ‘post_status’ => ‘any’, ‘post_parent’ => $post->ID ); $attachments = get_posts( $args ); if (…

Replace Howdy Admin in WordPress Admin Bar

Replace Howdy Admin in WordPress Admin Bar

Although it’s not really a huge deal but some people might want to replace the default welcome message “Howdy, admin” in the WordPress admin bar. To replace “Howdy, admin” in WordPress admin bar, you can use this code snippet below. Using this snippet now, your welcome message will read “Welcome! admin” instead of default “Howdy,…

Redirect to Custom Page After Registration

Redirect to Custom Page After Registration

On successful registration of a user, WordPress by default shows “Registration Complete. Please check your e-mail.” message. But on a specific project/website you may want your newly registered user to display a custom registration message or you may want to redirect to custom page. In my opinion, it’s a better idea to redirect users to…