3
 add_filter('the_content','filter_trendland_content',99999);

//create a the function to get the content of the page by using the hook the_content
function filter_trendland_content($content) {

    $content = "Blank content";
    return $content;

}

上記のフィルターを使用してみましたが、投稿ではなくページで機能します。投稿に対してこのフィルターを機能させるには、他のページで変更を加える必要がありますか?「空白のコンテンツ」というテキストが表示されますが、投稿にはデータ。助けてください。

4

0 に答える 0