Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

WordPress 2.x Filter List for Plugin and Theme Developers

April 11th, 2006 by Angsuman Chakraborty

A B C D E F G H I K L M N O P Q R S T U V W X Y

No. Filter Name File Line No. Description
107 manage_posts_columns wp-admin/edit.php 127  
108 mce_browsers wp-includes/js/tinymce/tiny_mce_gzip.php 133 The browsers supported by the rich editor. Input and output is an array of strings, which defaults to array(’msie’, ‘gecko’, ‘opera’).
109 mce_buttons wp-includes/js/tinymce/tiny_mce_gzip.php 127 The rows of buttons in the toolbar displayed by the rich editor. Filters using these hooks should append to the mce_buttons_2 or mce_buttons_3. The input and output is an array of strings.

mce_buttons defaults to array(’bold’, ‘italic’, ’strikethrough’, ’separator’, ‘bullist’, ‘numlist’, ‘outdent’, ‘indent’, ’separator’, ‘justifyleft’, ‘justifycenter’, ‘justifyright’ ,’separator’, ‘link’, ‘unlink’, ‘image’, ‘wordpress’, ’separator’, ‘undo’, ‘redo’, ‘code’, ‘wphelp’)

mce_buttons_2 and mce_buttons_3 default to empty arrays (array()).

An example function to add your own button after a separator on the right of the first row:

add_filter('mce_buttons', 'extended_editor_mce_buttons', 0);

function extended_editor_mce_buttons($buttons) {
    array_push($buttons, 'plugin_name');
    return $buttons;
}

110 mce_buttons_2 wp-includes/js/tinymce/tiny_mce_gzip.php 129
111 mce_buttons_3 wp-includes/js/tinymce/tiny_mce_gzip.php 131
112 mce_plugins wp-includes/js/tinymce/tiny_mce_gzip.php 98 The plugins loaded by the rich editor. Filters using this hook should append the array they receive. The input and output is an array of strings. The data defaults to:
     array('wordpress', 'autosave', 'wphelp')


An example function to add your own plugin:

add_filter('mce_plugins', 'extended_editor_mce_plugins', 0);

function extended_editor_mce_plugins($plugins) {
    array_push($plugins, 'plugin_name');
    return $plugins;
}

113 mce_theme wp-includes/js/tinymce/tiny_mce_gzip.php 78 The visual and functional theme of the rich editor. Filters using this hook should replace, not append the data they receive, which defaults to ‘advanced’.
114 mce_valid_elements wp-includes/js/tinymce/tiny_mce_gzip.php 125 The valid html elements for the rich editor. Any elements not in this list will automatically be removed by the rich editor BEFORE the post is submitted to WordPress. The input and output is a single comma-delimited string of elements. See http://tinymce.moxiecode.com/tinymce/docs/option_valid_elements.html for more detailed information.

An example function to add your own valid elements (without overriding the defaults):

add_filter('mce_valid_elements', 'extended_editor_mce_valid_elements', 0);

function extended_editor_mce_valid_elements($valid_elements) {
    $valid_elements .= 'element1,element2';
    return $valid_elements;
}

115 mod_rewrite_rules wp-includes/classes.php 1411 passed the block of rules as a string. The rules are formatted as they will/should be written out to your .htaccess file.
116 month_link wp-includes/template-functions-links.php 153  
117 month_link wp-includes/template-functions-links.php 155  

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


Filed under CMS Software, Headline News, How To, Pro Blogging, Web, Web Services, WordPress | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»Anaconda 3 Column Theme Release Schedule
»How To Accept Multiple Parameters in WordPress Filters
»WordPress 2.x Hooks for Action - Comprehensive List for Plugin and Theme Developers
»Next Generation WordPress Theme Design - Giraffe
»How to add custom functions to a WordPress 1.5 theme?
»WordPress.com Copies Core Drupal Branding Theme Citing GPL
»List of Files Changed in WordPress 2.03 wrt. WordPress 2.02
»Anaconda: 3-Column WordPress Theme Sneak Preview
»New Forum for 3 Column widgetized Anaconda Theme ( WordPress )
»SemioLogic Theme is Illegally And Unethically Shipping Old Version of Translator Plugin
»Neat Three Column WordPress Theme - Alexified
»WordPress Plugin & Theme Cheat Sheet
»Testimonials: What Customers Are Saying About Angsuman's Translator Plugin Pro for WordPress Blogs
»When You Don't Receive Your Translator Plugin...
»Introducing Prologue for Corporate Communications

4 Responses to “WordPress 2.x Filter List for Plugin and Theme Developers”

  1. MacManX.com » Blogroll Dive: 4/17/06 Says:

    [...] a comprehensive list of WordPress v2.x filters for both plugin and theme developers. Add to: del.icio.us Filed under:Blogs [...]

  2. Weblog Tools Collection » List of WordPress 2.x Filters Says:

    [...] WordPress 2.x Filters Comprehensive List for Plugin and Theme Developers. I like this list and have come across something similar on the Codex but I cannot recall the URI. Also look for Wordpress 2.x Hooks from Angsuman. My only gripe is the presentation, but thats the author’s choice and the nature of the beast. Technorati Tags: wordpress filters wordpress hook   [...]

  3. TechPush Says:

    [...] Simple Thoughts的Wordpress 2.× Filter完全列表,对于WP插件和主题的开发者很有用。 将本文保存到:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  4. cat litter Says:

    *taps fingers on desk and wonders why nobody is postin*

    \”Postin\” -Southern Verb, to post. lol

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"No, this trick won't work...How on earth are you ever going to explain in terms of chemistry and physics so important a biological phenomenon as first love?" - Albert Einstein