Created
November 8, 2013 08:32
-
-
Save woodroots/7368035 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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