keita-i

Results 1 issues of keita-i

AMIMOTO AMIを使ってEC2+RDS+Wordpress+S3の構成をAWSで作成いたしました。 再構築する際にauthorやwp-content/pluginsなどのフォルダを除外したいです。 いろいろ調べ、以下を/wp-content/plugins/staticpress/plugin.phpの末尾に 記述すれば除外できるというサイトを見つけたのですが、 実際に記述して再構築を行うとエラーになり、再構築自体が実行されませんでした。 ---------------------------------------------------------------------------- add_action('StaticPress::file_put', 'static_rm', 1); function static_rm($file_dest, $url){ if(strstr($file_dest, '/author/') or strstr($file_dest, '/wp-content/plugins/') or strstr($file_dest, '/wp-json/')){ unlink($file_dest); } } ---------------------------------------------------------------------------- どうすれば再構築時に一部のディレクトリ、ファイルを除外できますでしょうか?