Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Quick Tips

Home» Tutorials » Quick Tips

Ensure Your Scripts and Styles Are Not Cached with Updates

Posted on November 5, 2012 by Pippin in Beginner, Quick Tips, Tutorials 10 Comments

Have you ever pushed out an update that included modifications to scripts or styles and then later had to tell someone to clear their cache or do a hard refresh in order to see the updates? There is actually a very simple way to avoid this scenario and force the browser to display the updated [...]

View Post wp_enqueue_script, wp_enqueue_style

Use TidyPHP with Sublime Text 2 for Lightning Fast Formatting

Posted on October 8, 2012 by Pippin in Intermediate, Quick Tips, Tutorials 5 Comments

Writing clean code is something you should always strive for in your WordPress projects, and you should always do what you can to adhere to the WordPress Coding Standards. I tested out a really awesome tool today that you should seriously consider adding to your workflow if you are a Sublime Text 2 user.

View Post Sublime Text 2

Add Custom Image Sizes to Media Uploader

Posted on August 17, 2012 by Pippin in Action and Filter Hooks, Intermediate, Quick Tips, Tutorials, Working with Attachments 8 Comments

One of the most useful functions to both theme and plugin developers, when it comes to working with images, is add_image_size(), which allows you to create additional automatically generated image sizes to the WordPress image upload process.

View Post add_image_size

Get the Name of the Current Action or Filter

Posted on March 19, 2012 by Pippin in Action and Filter Hooks, Intermediate, Quick Tips, Tutorials No Comments

After watching a Twitter discussion this morning (shown in the image below), Helen Hou-Sandi, a WordPress developer and core-committer mentioned a function I had never heard of that can be used for finding the name of the current action or filter hook. It is called current_filter() and is extremely useful. Check out the snippets below [...]

View Post add_action, add_filter, current_filter

Detect when an Action has Run with did_action

Posted on March 14, 2012 by Pippin in Action and Filter Hooks, Advanced, Quick Tips, Tutorials 5 Comments

Some hooks get fired more than once, meaning that functions connected to those hooks are ran multiple times. This causes problems with some functions when they are designed to only be run once. If you have a function that is connected to an action hook, and you need to ensure it only ever runs once, [...]

View Post add_action, did_action, hook

Removing “Restrict This Content” Meta Box in Restrict Content Pro

Posted on March 8, 2012 by Pippin in Action and Filter Hooks, Intermediate, Quick Tips, Tutorials, WordPress Admin / Dashboard 1 Comment

When using Restrict Content Pro, the “Restrict this Content” meta box is automatically loaded on all registered post types, but sometimes you want to remove it from certain post types. The plugin includes a simple filter that you can use to specify which post types the meta box should not be added displayed on. This [...]

View Post add_filter, meta box, restrict content pro

Check for Existence of Action Hook

Posted on February 15, 2012 by Pippin in Action and Filter Hooks, Intermediate, Quick Tips, Tutorials 2 Comments
Fishing Hooks

Action hooks allow us to make our plugins much more extensible, and some times we need to be able to check whether a hook exists, or has been registered. We might need to check that a hook exists for a variety of reason, and thankfully WordPress gives us a really easy way to do that. [...]

View Post add_action, do_action, has_action

Introduction to Using Nonces for Form Validation

Posted on January 11, 2012 by Pippin in Intermediate, Member Restricted, Quick Tips, Short Codes, Subscriber Only, Tutorials No Comments

Nonces are used to add an extra layer of security to WordPress. They are typically used when submitting form data to ensure that the form is being submitted from where it’s supposed to. Nonce fields help us protect our forms from malicious attacks and non-authorized submissions. This tutorial will introduce you to using nonces in [...]

View Post forms, nonce, security

Check if Theme Supports Post Thumbnails

Posted on December 29, 2011 by Pippin in Intermediate, Quick Tips, Tutorials, Working with Attachments, Writing Plugins No Comments

A lot of plugins use the Featured Image feature for showing post thumbnails. My Better Recent Posts Widget Pro is a perfect example. It uses the Featured Image to display small thumbnails of the recent posts in widget areas. There’s one problem though. This feature only works if the currently active theme supports post thumbnails. [...]

View Post featured image, has_post_thumbnail, image

Add Menu Links to the New WordPress 3.3 Tool Bar

Posted on December 28, 2011 by Pippin in Intermediate, Quick Tips, Tutorials, WordPress Admin / Dashboard 5 Comments

The new admin bar, now named the tool bar, in WordPress 3.3 is great. It’s really well organized and cleans the dashboard up a lot. It’s also great for developers because adding new links to settings pages, documentation, or other useful links, is quite simple. In this quick tip, I’m going to show you how [...]

View Post add_menu, admin_bar_menu, admin_menu, toolbar
  • 1
  • 2
  • 3
  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Submitting Your First Pull Request to a WordPress Plugin on Github (4)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

  • Plugin Development 101 – Intro to Loading Scripts and Styles (16)

    In this part of Plugin...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • @sunnyratilal something of the sort ;) @js_zao
    May 23, 2013
  • @tnorthcutt Yes it's possible. Quite a few users have done that
    May 23, 2013
  • @tnorthcutt Great, glad to help!
    May 23, 2013

Topics

register_setting shortcodes the_content campaign monitor hook Rémi Corson contextual help Tom McFarlin meta box featured wp_enqueue_script attachments add_options_page do_action short codes Related posts plugin login image authors mail chimp attachment forms recent posts post types apply_filters bbpress comments taxonomies short code custom post type Ajax images gallery Stripe taxonomy jquery widgets users add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins