
書いたよ。
if ( is_admin() ) {
function add_puu( $translated ) {
$translated .= 'ぷー';
return $translated;
}
add_filter( 'gettext', 'add_puu' );
add_filter( 'gettext_with_context', 'add_puu' );
add_filter( 'ngettext', 'add_puu' );
add_filter( 'ngettext_with_context', 'add_puu' );
}
ほらね。


わがまま言いおって
if ( is_admin() ) {
function add_puu( $translated ) {
$translated = rtrim( $translated, ' 。' );
$translated .= 'だぷー';
return $translated;
}
add_filter( 'gettext', 'add_puu' );
add_filter( 'gettext_with_context', 'add_puu' );
add_filter( 'ngettext', 'add_puu' );
add_filter( 'ngettext_with_context', 'add_puu' );
}

「管理画面の語尾の全てに「ぷー」を追加するコード」への2件のフィードバック