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

Working with jQuery

Home» Tutorials » Working with jQuery

Plugin Development 101 – Intro to Loading Scripts and Styles

Posted on March 14, 2013 by Pippin in Member Restricted, Subscriber Only, Tutorials, Working with jQuery, Writing Plugins 16 Comments
wordpress-plugin-development_101

In this part of Plugin Development 101 you will be introduced to how to load scripts and styles in your WordPress plugins. This is a fundamental element of WordPress plugin development and is used in the vast majority of all plugins. There are many ways that asset loading can be done wrong, so I want to [...]

View Post

Making PHP Variables Available to Your JS

Posted on October 22, 2012 by Pippin in Intermediate, Tutorials, Working with jQuery, Writing Plugins 7 Comments

If you have ever written a plugin that uses any form of Javascript, you will probably have come across the problem of passing configuration options from PHP to Javascript. Take an image slider plugin, such as Soliloquy for example: most likely there is a settings page of some kind that lets the user set the [...]

View Post wp_localize_script

Using Ajax in Your Plugin and WordPress Admin

Posted on June 15, 2012 by Pippin in Advanced, Ajax, Free Members, Member Restricted, Tutorials, Video Tutorials, WordPress Admin / Dashboard, Working with jQuery, Writing Plugins 37 Comments

This video tutorial walks you through the process of using ajax in the WordPress admin within your own plugins. The end result of this tutorial is not a complete plugin, but it does show the entire process, step by step, of how ajax is utilized in the WordPress dashboard.

View Post add_options_page, Ajax, wp_enqueue_script, wp_localize_script

Use wp_localize_script, It Is Awesome

Posted on May 27, 2012 by Pippin in Tutorials, Working with jQuery, Writing Plugins 25 Comments

One of the challenges you will run into, when developing for WordPress, is finding a way to make your data (which is accessed via PHP) available to your scripts. For example, you might have a popup notification that is displayed when someone clicks a button. The message in this popup, in order to be translatable, [...]

View Post jquery, Michael Martin, Scripts, wp_enqueue_scripts, wp_localize_script

Create a Live Search in WordPress with jQuery and Ajax

Posted on May 25, 2012 by Pippin in Advanced, Ajax, Member Restricted, Subscriber Only, Tutorials, WordPress Admin / Dashboard, Working with jQuery, Working with Users 15 Comments

A live search is a search form that displays the results for your search query as you type. When done right, they can be exceptionally nice to use, and going through the process of building one covers a lot of really important techniques that can be applied to many other areas as well. This in-depth [...]

View Post add_action, Ajax, jquery, search, wp_ajax

Drag and Drop Order for Plugin Options

Posted on February 21, 2012 by Pippin in Action and Filter Hooks, Advanced, Ajax, Member Restricted, Subscriber Only, Tutorials, WordPress Admin / Dashboard, Working with jQuery, Writing Plugins 53 Comments

The drag and drop method of ordering items in an option table is very popular, and also extremely useful. Rather than forcing users to manually enter “order” numbers to sort items the way they want, they can simply click and drag the items into the desired order. I use drag-and-drop ordering quite a bit in [...]

View Post add_option, add_options_page, Ajax, register_setting, sortable, update_option

Process Ajax Requests Correctly in WordPress Plugins

Posted on September 1, 2011 by Pippin in Advanced, Ajax, Tutorials, Working with jQuery, Writing Plugins 23 Comments

WordPress provides a set of great tools for processing ajax requests in plugins (and themes). I’m going to give you a quick example of how these tools can be used to accomplish a variety of tasks. For this example, We’ll just be using some simple alerts, but they will serve very well for demonstration purposes.

View Post Ajax, jquery

Adding the Farbtastic Color Picker to your WordPress Widgets

Posted on July 22, 2011 by Pippin in Intermediate, Tutorials, Widget Tutorials, Working with jQuery, Writing Plugins 14 Comments

The Farbtastic Color Picker is a fantastic tool for developers and designers to utilize as a way to give their plugin (or theme) users an extra level of control. With Farbtastic, we can allow our users to change the colors of certain elements, such as the background color of our widget, by using an elegant [...]

View Post color picker, farbtastic, jquery, widget, widgets

Load Scripts if Post has Short Code

Posted on July 15, 2011 by Pippin in Advanced, Intermediate, Short Codes, Tutorials, Working with jQuery, Writing Plugins 16 Comments

This is a really handy trick that I just learned today. Whenever we can, it is always best to only load styles and scripts for our plugins when they are needed. This tutorial will show you how to load stylesheets and scripts only when a post contains the short code that the styles / scripts [...]

View Post Scripts. styles, short codes, shortcodes

Post Data with Ajax in WordPress Pugins

Posted on May 10, 2011 by Pippin in Advanced, Ajax, Contact Forms Tutorials, Tutorials, Working with jQuery, Writing Plugins 9 Comments

In this tutorial I am going to cover how to use Ajax to submit and process form data in your WordPress plugins. In order to tie things together, and to provide you a real world example, I am going to be working with the code used in my Short Code Contact form plugin.

View Post Ajax, forms
  • 1
  • 2
  • 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

  • Test Your Plugins with RTL (0)

    Right-To-Left languages are those that...

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

    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...

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

Latest Tweets

  • Anyone bored and feel like showing me how I have failed? https://t.co/uSkvuuN40g
    May 25, 2013
  • @SDavisMedia It's very minimal on styling, and it's only the submission forms / dashboard that have styling at all
    May 25, 2013
  • The awesome Frontend Submissions extension was released yesterday for EDD. Create a full-fledged marketplace: https://t.co/WnZXFOsqL8
    May 25, 2013

Topics

hook meta box Rémi Corson featured shortcodes campaign monitor add_options_page register_setting Sugar Event Calendar attachments add_shortcode wp_enqueue_script the_content image forms short codes Related posts login do_action authors mail chimp attachment plugin recent posts comments post types bbpress apply_filters short code taxonomies custom post type Ajax images gallery Stripe jquery taxonomy 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) 2013 Pippin's Plugins