get_sample_permalink_html というフィルターフックがあります。 フックするとその部分のHTMLが取得できますので、正規表現等でその部分を置換する方法もあります。 add_filter( 'get_sample_permalink_html' , 'not_get_sample_permalink_html' ); function not_get_sample_permalink_html( $permalink_html ) { var_dump($permalink_html); }
![パーマリンクを非表示にしたい](https://cdn-ak-scissors.b.st-hatena.com/image/square/ed4d0a493ce504f1173fe010d5b74ef7a8be02dc/height=288;version=1;width=512/https%3A%2F%2Fs.w.org%2Fimages%2Fhome%2Fwordpress-default-ogimage.png)