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(); |
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
<?php | |
//Amazon共通の定数 | |
define('AF','nets0f-22'); //トラッキング | |
define('AC','AAAAAAAAAAAAAAAA'); //アクセスキー | |
define('SEC','abcdefghijklmnopqrstuvwxyz'); //シークレットキー | |
define('URL','http://ecs.amazonaws.jp/onca/xml'); //リクエスト先のURL | |
//認証取得用function | |
function urlencode_rfc3986($str) { |
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
function content_ad($content){ | |
//個別記事ページかどうか判定 | |
if(is_single()){ | |
//ヒアドキュメントで広告用コードの定義 | |
$ad = <<< EOF | |
<div class="module"> | |
<script type="text/javascript"><!-- | |
google_ad_client = "ca-pub-0596916800718129"; |
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
<?php | |
//削除処理Ajax化 | |
function ajax_delete(){ | |
//ヒアドキュメントでhead内にスクリプトを直接書いてます。 | |
//スクリプトの処理自体は「ゴミ箱」のリンク先をAjaxするだけなので難しくないと思います。 | |
print <<< EOF | |
<script type="text/javascript"> | |
(function($){ |