<code id='C7E534EF42'></code><style id='C7E534EF42'></style>
    • <acronym id='C7E534EF42'></acronym>
      <center id='C7E534EF42'><center id='C7E534EF42'><tfoot id='C7E534EF42'></tfoot></center><abbr id='C7E534EF42'><dir id='C7E534EF42'><tfoot id='C7E534EF42'></tfoot><noframes id='C7E534EF42'>

    • <optgroup id='C7E534EF42'><strike id='C7E534EF42'><sup id='C7E534EF42'></sup></strike><code id='C7E534EF42'></code></optgroup>
        1. <b id='C7E534EF42'><label id='C7E534EF42'><select id='C7E534EF42'><dt id='C7E534EF42'><span id='C7E534EF42'></span></dt></select></label></b><u id='C7E534EF42'></u>
          <i id='C7E534EF42'><strike id='C7E534EF42'><tt id='C7E534EF42'><pre id='C7E534EF42'></pre></tt></strike></i>

          
          当前位置:首页 > wordpress真人庄网投网平台闲游戏平台隐藏文章部分内容需要注册登录后可见

          wordpress真人庄网投网平台闲游戏平台隐藏文章部分内容需要注册登录后可见

          而注册需要邀请码,需要注册登录或会员才能查看。

          [hides]这里的内容只为已登录的用户显示的[/hides]

          效果显示图

          有时手动输入代码比较麻烦,可以在functions.php下添加快捷编辑按钮代码

          //添加编辑器快捷按钮function mmkj_tags($mce_settings) {?><script type="text/javascript">QTags.addButton( 'hides', '隐藏内容登录可见', '[hides]', '[/hides]' );function yunluo_shortcode() {}</script><?php}add_action('after_wp_tiny_mce', 'mmkj_tags');

          就变成了V网投网平台trong>真人庄闲游戏平台IP会员可以访问隐藏的内容。

          在你用的主题模板函数functions.php的文件下加入以下代码

          // 添加只允许登录后查看  add_shortcode('hides','loginvisible');function loginvisible($atts,$content=null){if(is_user_logged_in() && !is_null($content) && !is_feed())return $content;return '';}

          在需要加密的内容尾部加入下边两段代码(html编辑器中加入),wordpress如何实现代码实现这个功能呢?

          这种功能主要是内容对用户有需求,会员要注册登录才能访问,可以网投网平台人庄闲游戏平台出售邀请码,就会提示只有登录后才能访问隐藏内容。适合VIP会员,

          访问一些论坛网站在查看文章内容时会发现很多文章帖子尾部都有部分内容游客无法查看,

          分享到: