Skip to content

Instantly share code, notes, and snippets.

@woodroots
Created November 8, 2013 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodroots/7368035 to your computer and use it in GitHub Desktop.
Save woodroots/7368035 to your computer and use it in GitHub Desktop.
rs-csv-importer.phpの130行目あたりにあるupdate()というところで記事更新処理が行われているので、
その直前でHTMLタグ除去のフィルターであるwp_filter_post_ksesという関数をリムーブする、ということです。
if ($thumbnail) $ph->add_media($thumbnail,'','','',true);
remove_filter('content_save_pre', 'wp_filter_post_kses'); //←この行追加
if ($is_update)
$result = $ph->update();
else
$result = $ph->insert();
unset($ph);
return $result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment