[wp-hackers] "content_filtered_save_pre" filter?
viper at viper007bond.com
Sun Sep 9 00:29:36 GMT 2007
No, no, I know how to do all of that (I have another plugin that adds some
buttons to TinyMCE).
This plugin is for posting code and TinyMCE does < to < which I don't
want inside of the plugin's code blocks. I need to reverse that in certain
places. I can't do it on output as I have no way of knowing then if the post
was written in TinyMCE or not.
If push comes to shove, I can use "content_save_pre", but that's on the back
burner for the moment.
On 9/8/07, Andy Skelton <skeltoac at gmail.com> wrote:
> I don't know anything about any broken filters but you mentioned tinymce,
> If you just want to change the way tinymce behaves, the more direct
> way would be to alter the tinymce config or write your own replacement
> functions in js. The hooks for this are in tiny_mce_config.php.
> On 9/8/07, Viper007Bond <viper at viper007bond.com> wrote:
> > I want to filter the post before it's inserted into the database
> > some changes TinyMCE makes).
> > According to http://codex.wordpress.org/Plugin_API/Filter_Reference ,
> > "content_filtered_save_pre" appears to be what I want. However, when I
> > this code:
> > add_filter( 'content_filtered_save_pre', 'var_dump' );
> > NULL is outputted, i.e. nothing is being passed to it. I'm using the
> > SVN.
> > "content_save_pre" gets some data, but it's the raw $_POST with slashes
> > added before quotes and such.
> > Any ideas?
> > --
> > Viper007Bond | http://www.viper007bond.com/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Viper007Bond | http://www.viper007bond.com/
More information about the wp-hackers