通过这种方法,您可以根据需要更改或移除“密码保护:”文字提示。保存更改,然后查看它们在您的页面或文章上的效果。
add_filter( 'protected_title_format', 'remove_protected_text' );
function remove_protected_text() {
return __('%s');
}
通过这种方法,您可以根据需要更改或移除“密码保护:”文字提示。保存更改,然后查看它们在您的页面或文章上的效果。
add_filter( 'protected_title_format', 'remove_protected_text' );
function remove_protected_text() {
return __('%s');
}
评论 (0)