LoginSignup
0
0

More than 5 years have passed since last update.

wordpressのAll In One SEO PackのSEOカスタムフィールドにxmlrpcで投稿するとき、嵌った

Last updated at Posted at 2017-01-07

wordpress側でコードの追記が必要だった。

wordpress側の修正

./wp-includes/functions.php

のファイル末尾に、以下の記述を追加

// All in One SEO PackのXMLRPCによる投稿を許可する
function allow_aioseo($meta_key, $meta_type = null) {
  if ( substr( $meta_key,0,9 ) == '_aioseop_' ) $protected = FALSE;
  else $protected = ( '_' == $meta_key[0] );

  return $protected;
}
add_filter('is_protected_meta', 'allow_aioseo');

カラム名の先頭がアンダースコアだとこういったカスタマイズが必要らしい。。

嵌った。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0