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

Action and Filter Hooks

Home» Tutorials » Action and Filter Hooks

Build a Search Logging Plugin

Posted on December 11, 2012 by Pippin in Action and Filter Hooks, Advanced, Member Restricted, Subscriber Only, Tutorials, Writing Plugins 2 Comments

Knowing what your users are searching for can be extremely useful and important. In this members-only tutorial we’re going to look at how to create a simple search logging plugin that will record every search query performed on your site. We will be using the WP_Logging class that I released a week or two ago [...]

View Post search, template_redirect, WP_Logging

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

Using pre_get_posts to Modify Queries for Meta Data and More

Posted on June 27, 2012 by Pippin in Action and Filter Hooks, Advanced, Member Restricted, Subscriber Only, Tutorials, Video Tutorials 24 Comments

There are a lot of ways to query posts in WordPress and a lot of parameters you can use for pulling in just the data you want. For example, you can easily pull in just posts that are in category X, Y, or Z, and you can also just as easily pull in only posts [...]

View Post add_action, pre_get_posts

Introduction to the gettext Filter in WordPress

Posted on June 21, 2012 by Pippin in Action and Filter Hooks, Intermediate, Tutorials, Video Tutorials 5 Comments

The gettext filter gives us a really easy way to change text anywhere in our WordPress install, including plugins and themes, without ever changing any of the original code. It is a great way to easily customize labels, headings, button text, and any other text we wish to change.

View Post add_filter, gettext, localization

Loading Scripts Correctly in the WordPress Admin

Posted on May 16, 2012 by Pippin in Action and Filter Hooks, Intermediate, Tutorials, WordPress Admin / Dashboard, Working with Users, Writing Plugins 23 Comments

There has been a lot of talk over the last two days about loading scripts, particularly jQuery, correctly in WordPress themes and plugins, and anyone who follows me on Twitter probably knows that this is an issue I bring up a lot. When providing support for my plugins, I discover themes (and plugins) that are [...]

View Post admin_enqueue_scripts, jquery, wp_enqueue_script, wp_enqueue_scripts

Playing Nice with the “the_content” Filter

Posted on May 14, 2012 by Pippin in Action and Filter Hooks, Intermediate, Tutorials, Writing Plugins 45 Comments

One of the very first things people tend to learn when writing plugins is how to attach custom HTML to the bottom of their WordPress posts using the filter called “the_content”. This is good, as it is an extremely useful filter, but rarely do tutorials really explain how to use this filter well, and how [...]

View Post add_filter, the_content

Adding Custom Fields to the Easy Digital Downloads Checkout

Posted on May 7, 2012 by Pippin in Action and Filter Hooks, Intermediate, Tutorials, Writing Plugins 15 Comments

Easy Digital Downloads is a plugin I have been building for selling digital downloads through WordPress. It is completely free and very flexible. Due to a large number of actions hooks and filters, there are many ways that you can customize the plugin to best suit your needs. This tutorial will walk you through the [...]

View Post add_action, add_filter, easy digital downloads

Add Custom Links to User Row Actions

Posted on April 18, 2012 by Pippin in Action and Filter Hooks, Intermediate, Tutorials, Working with Users, Writing Plugins 6 Comments

While working on a user badge system for the CG Cookie network, I came across the need to add a custom link to the action links, such as Edit and Delete, present for each user on the WordPress Users page. After a quick google search, I was able to find a simple filter than can [...]

View Post add_filter, page_row_actions, post_row_actions, user_row_actions

Add Screen Options Tab to Your WordPress Plugin

Posted on April 4, 2012 by Pippin in Action and Filter Hooks, Intermediate, Tutorials, WordPress Admin / Dashboard, Writing Plugins 16 Comments
Screen Options

You have probably noticed the Screen Options tab in the top right corner of many WordPress admin pages. This tab brings down a configuration panel that you can generally use to control what elements are displayed on the current amin page. One of the really great things about the Screen Options tab is that which [...]

View Post add_filter, add_screen_option, Chris Marslender, get_current_screen

WordPress Rewrite API – Part 3

Posted on March 23, 2012 by Abid Omar in Action and Filter Hooks, Advanced, Ajax, Member Restricted, Subscriber Only, Tutorials, Writing Plugins 7 Comments

In part 3 of the WordPress Rewrite API series, we will be covering adding custom endpoints to specific places of your blog content. Endpoints are extremely powerful, and in this case, they will allow us to enable AJAX in the default theme WordPress (Twenty Eleven), so that when loading a post or page, it’s all [...]

View Post Abid Omar, Ajax, endpoint
  • 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 (1)

    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

  • RT @TweetSmarter: Homeowners Association told man he couldn't the American flag in his yard. ►His Response: http://t.co/Sx7Z99X1yG r/t
    May 19, 2013
  • RT @mikejolley: If you were getting an ‘undefined’ error after login with Sidebar Login for WordPress, try 2.5.3 http://t.co/SVAiI831Bx
    May 19, 2013
  • @jasonbobich hmm, interestinf
    May 19, 2013

Topics

featured Sugar Event Calendar contextual help get_user_meta meta box Tom McFarlin add_options_page attachments wp_enqueue_script register_setting shortcodes hook add_shortcode attachment mail chimp image plugin forms login short codes authors Related posts do_action bbpress comments recent posts post types apply_filters short code taxonomies custom post type images gallery Ajax Stripe taxonomy jquery users widgets 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) 2011 Pippin's Plugins