Thread Starter
q292u
(@q292u)
Never mind. I’ve done it myself.
I’ve used another fwp filter as a starting point, and then changed the logic (and names etc).
My filter looks for “1970-01-01 00:00:00” within the title field.
(I found that sometimes the string was prefixed with “eBay Search: (Error)”)..
Anyway, I’m sorted. The filter is working on two of my sites without problems. I’ve not looked into packaging the filter as a plugin yet.
I’ll let you know if I do..
what filter did you use as a starting point.
I would like to filter/change the content of a post and used the ‘Strip HTML Tags from Posts’ filter as a starting point. It worked with the last version of FWP but I can’t get it to work now.
Did something change in the latest revision
any ideas?
I am using these hooks:
`add_action(
/*hook=*/ ‘feedwordpress_admin_page_posts_meta_boxes’,
/*function=*/ array(&$this, ‘posts_meta_boxes’),
/*priority=*/ 100,
/*arguments=*/ 1
);
add_action(
/*hook=*/ ‘feedwordpress_admin_page_posts_save’,
/*function=*/ array(&$this, ‘posts_save’),
/*priority=*/ 100,
/*arguments=*/ 2
);
add_filter(
/*hook=*/ ‘the_content’,
/*function=*/ array(&$this, ‘the_content’),
/*priority=*/ 10010
);
add_filter(
/*hook=*/ ‘the_content_rss’,
/*function=*/ array(&$this, ‘the_content’),
/*priority=*/ 10010
);`
Thread Starter
q292u
(@q292u)
I used a filter about duplicate posts.
Unfortunately, I’ve just found a “1970-01-01 00:00:00” that got through last night.
It seems my filter isn’t working.. 🙁
yeah looks like i’ll be working on this one too. I have a couple other uses for filtering the content of the post but can’t seem to find a hook that works. If i find anything useful, I’ll post it here.