WordPress 2.x Filter List for Plugin and Theme Developers
April 11th, 2006 by Angsuman ChakrabortyA 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: |
| 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:
An example function to add your own plugin:
|
| 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): |
| 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










































Add to Technorati Favorites
April 17th, 2006 at 1:26 am
[...] a comprehensive list of WordPress v2.x filters for both plugin and theme developers. Add to: del.icio.us Filed under:Blogs [...]
April 20th, 2006 at 8:22 am
[...] 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 [...]
April 20th, 2006 at 7:33 pm
[...] Simple Thoughts的Wordpress 2.× Filter完全列表,对于WP插件和主题的开发者很有用。 将本文保存到:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]
January 14th, 2007 at 1:01 am
*taps fingers on desk and wonders why nobody is postin*
\”Postin\” -Southern Verb, to post. lol