WordPress.org

Support

Support » Plugins and Hacks » Inserting posts from outside WP (apply_filters-problem)

Inserting posts from outside WP (apply_filters-problem)

  • 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?

Viewing 1 replies (of 1 total)
  • Try this instead:

    $some_title= apply_filters(‘sanitize_title’,$some_title);

    that’ll sanitize the title for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Inserting posts from outside WP (apply_filters-problem)’ is closed to new replies.