WP Codex Search

WordPress Codex Search is a Ubiquity plugin that allows you to search WordPress Codex for functions and other references.

The command shortcut is 'wp'. Enjoy!

The source is available here wpcodex.js.

Check out more Ubiquity plugins.


  1. fritz
    Sep 6th, 2010 5:28 AM

    i have mozilla version 3.6.6 and installed ubiquity 0.6, when i entered this site i allowed the script but when pressing cntrl+space and typing wp [wp code] it does not work. Can you please help me make this work?

    • Nov 19th, 2010 8:52 PM

      did you got it to work? i have the same prob. with this thing

      • Oleg
        Jun 2nd, 2011 11:40 PM

        ditto. It seems Vladimir no more need of the plugin for himself and abandon its development.
        Mr Prelovac, may be you share you currently dev utils experience in replace of this ubiquity plugin. Thank you

  2. Nov 23rd, 2009 12:25 PM

    Here's the updated Ubiquity Command, I got it from https://wiki.mozilla.org/Labs/Ubiquity/Commands_In_The_Wild#PHP, have fun!

    homepage: "http://taukon.de/ubiquity-php-function-doc.php",
    author: {name: "Sebastian Barthenheier", email: "tauven@gmail.com"},
    license: "MPL,GPL",
    description: "Searching in the PHP Documentation (Quickreference)",
    help: "Enter text to search for",
    names: ['php'],
    arguments: [ {role: 'object', nountype: noun_arb_text, label: 'query'}],
    preview: function(pblock, args) {
    pblock.innerHTML = CmdUtils.renderTemplate("Searching for ${query} in the PHP documentation", args.object.text);
    execute: function(args) {
    Utils.openUrlInBrowser("http://php.net/search.php" +
    Utils.paramsToString({pattern: args.object.text, show: "quickref"}

    • tinynumbers
      Aug 31st, 2010 8:42 PM

      Lee - the updated command works for searching the PHP docs; here as an updated version of Prelovac's Ubiquity command for searching the WordPress Codex:

      // WordPress codex search plugin for Ubiquity by Vladimir Prelovac
      // Based on php search by Sebastian Barthenheier
      // http://prelovac.com/vladimir/

      names: ['wp'],
      arguments: [ { role: 'object', nountype: noun_arb_text, label:'function'} ],
      icon: "http://s.wordpress.org/favicon.ico?2",
      homepage: "http://prelovac.com/vladimir//ubiquity/wordpress-search",
      author: {name: "Vladimir Prelovac", email: "vprelovac@gmail.com"},
      license: "MPL,GPL",
      description: "Search WordPress codex documentation",
      help: "Enter WordPress search",
      execute: function(args)
      searchText = jQuery.trim(args.object.text);
      var url = "http://wordpress.org/search/{QUERY}"
      var urlString = url.replace("{QUERY}", searchText);
      preview: function(pblock, args)
      searchText = jQuery.trim(args.object.text);
      if(searchText.length <= 0)
      pblock.innerHTML = "Search WordPress Codex documentation";
      var previewTemplate = "Search WordPress Codex for ${query}";
      var previewData = {query: searchText};
      pblock.innerHTML = CmdUtils.renderTemplate(previewTemplate, previewData);

  3. Aug 10th, 2009 10:40 PM

    sadly I'm having problems to get this to work; I'm using Ubiquity 0.1.9 - of course it immediately suggested I upgraded to the the 0.5.x version, but that might mean existing scripts might not work. Hit up the one with PHP doc search, and it gave this scary warning, read the script and it seemed like the code was not malicious (imagine that?) so I said ok.
    I've got to your site, and nothing happens :(
    And of course its your book that I'm reading to get to this point.
    If you have any insight, I'd be most grateful.
    I recognise your picture so I must have been here for one of your other articles.
    I heard God used Object-Oriented COBOL to code the universe..

  4. Jul 17th, 2009 6:43 PM

    This plugin will not work with the latest ubiquity parser 2 https://wiki.mozilla.org/Labs/Ubiquity/Parser_2_API_Conversion_Tutorial

  5. Apr 3rd, 2009 3:09 PM

    You need to install Ubiquity first, and then you will get a notice when you visit this page.

  6. Cathy C.
    Apr 3rd, 2009 2:58 PM

    Must confess I need instructions to install your plug-in. All I see is your javascript source file. How do I use this?????

  7. Mar 6th, 2009 6:22 AM

    Hey, how i install this ????

  8. Jan 7th, 2009 3:35 PM

    Great plugin, thanks!

  9. Mike P.
    Dec 12th, 2008 7:01 PM

    Great plugin, thanks!

Have your say

You must be logged in to post a comment.