WordPress.org

Forums

Inserting posts from outside WP (apply_filters-problem) (2 posts)

  1. jakobn
    Member
    Posted 9 years ago #

    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?

  2. ramdac
    Member
    Posted 8 years ago #

    Try this instead:

    $some_title= apply_filters('sanitize_title',$some_title);

    that'll sanitize the title for you.

Topic Closed

This topic has been closed to new replies.

About this Topic