WordPress快捷码:仅向注册用户显示内容
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WordPress快捷码:仅向注册用户显示内容相关的知识,希望对你有一定的参考价值。
WordPress shortcode: Display content to registered users only
add_shortcode( 'member', 'member_check_shortcode' ); function member_check_shortcode( $atts, $content = null ) { return $content; return ''; } Once done, you can add the following to your posts to create a portion or text (or any other content) that will be only displayed to registered users: [member] This text will be only displayed to registered users. [/member]
以上是关于WordPress快捷码:仅向注册用户显示内容的主要内容,如果未能解决你的问题,请参考以下文章
如何在 Laravel 中仅向访客用户显示或隐藏我的表的一部分?