My problem is that i need to insert a lot of post with a script otside wordpress structure.
I have included wp-includes/functions.php and tries to call apply_filters('name_save_pre', $some_title); but it doesn't work.
What is wrong?
My problem is that i need to insert a lot of post with a script otside wordpress structure.
I have included wp-includes/functions.php and tries to call apply_filters('name_save_pre', $some_title); but it doesn't work.
What is wrong?
Try this instead:
$some_title= apply_filters('sanitize_title',$some_title);
that'll sanitize the title for you.
This topic has been closed to new replies.