Skip to main content

Creating Plugins

  • Chapter
  • First Online:
WordPress for Web Developers
  • 3017 Accesses

Abstract

While theme functions are quite powerful, they aren’t very portable. If you ever want to switch themes, you’ll have to copy all your essential functions from one theme to another. There’s another option: many of the theme functions you’ve seen throughout this book could become plugins. Plugins offer much better control over functions, since you can activate and deactivate them as needed. The plugin manager also provides some safeguards, since plugins containing errors will fail to activate, whereas errors in a theme functions file will affect your site immediately. You can do any number of things with plugins: modify or replace existing functions (filters), add your functions in predetermined locations (actions), create new template tags and shortcodes, and more.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    http://microformats.org/wiki/hcard

  2. 2.

    http://h2vx.com/vcf/

  3. 3.

    http://codex.wordpress.org/Shortcode_API

  4. 4.

    http://codex.wordpress.org/Settings_API

  5. 5.

    http://codex.wordpress.org/Options_API

  6. 6.

    http://blog.tanist.co.uk/files/unserialize/index.php

  7. 7.

    http://codex.wordpress.org/Administration_Menus

  8. 8.

    http://www.w3.org/TR/CSS21/syndata.html#characters

  9. 9.

    http://sudarmuthu.com/wordpress/wp-readme

  10. 10.

    http://wordpress.org/extend/plugins/about/readme.txt

  11. 11.

    http://daringfireball.net/projects/markdown

  12. 12.

    http://wordpress.org/extend/plugins/about/validator

  13. 13.

    http://wordpress.org/extend/plugins/about

  14. 14.

    http://wordpress.org/extend/plugins/about/svn/

  15. 15.

    http://poedit.net

  16. 16.

    http://betterwp.net/wordpress-tips/create-pot-file-using-poedit

  17. 17.

    http://stephanieleary.com/books/wordpress-for-web-developers/

  18. 18.

    http://wordpress.org/extend/ideas/

  19. 19.

    http://wordpress.org/extend/plugins/custom-list-table-example

  20. 20.

    www.foxrunsoftware.net/articles/wordpress/add-custom-bulk-action

  21. 21.

    http://wp-snippets.com/add-links-to-wordpress-3-3-new-toolbar

  22. 22.

    http://ottopress.com/2011/new-in-wordpress-3-3-more-useful-help-screens

  23. 23.

    http://codex.wordpress.org/AJAX_in_Plugins

  24. 24.

    http://wpajax.com

  25. 25.

    www.andrewmpeters.com/blog/how-to-make-jquery-ajax-json-requests-in-wordpress

  26. 26.

    http://wpcandy.com/presents/wordpress-plugin-user-interface-guide

  27. 27.

    http://jumping-duck.com/tutorial/wordpress-plugin-structure/

  28. 28.

    http://wp.tutsplus.com/tutorials/7-simple-rules-wordpress-plugin-development-best-practices

  29. 29.

    http://make.wordpress.org/core/handbook/

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Stephanie Leary

About this chapter

Cite this chapter

Leary, S. (2013). Creating Plugins. In: WordPress for Web Developers. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5867-4_13

Download citation

Publish with us

Policies and ethics