
內容簡介
完整文件
使用方法
啟用「區塊權限」外掛。
使用 Gutenberg 編輯器編輯任意頁面。
如果選擇「顯示」作為區塊權限,只有在驗證設置時方可顯示區塊內容。否則,區塊內容將被隱藏。
顯示
如果選擇「每個人」作為權限,那麼區塊內容將對每個人可見。
如果選擇「會員」作為權限,那麼區塊內容將對已登錄用戶可見。
如果選擇「指定用戶角色的會員」作為權限,那麼區塊內容僅對具備指定用戶角色的會員可見。
如果選擇「指定用戶」作為權限,那麼區塊內容僅對指定的用戶可見。
如果選擇「指定設備」作為權限,那麼區塊內容僅對指定的設備(例如桌面,手機和/或平板電腦)可見。
如果選擇「日期範圍」作為權限,那麼區塊內容僅在指定日期範圍內可見。
如果選擇「時間範圍」作為權限,那麼區塊內容僅在指定時間範圍內可見。
如果選擇「每週某天」作為權限,那麼區塊內容僅在指定的某些天可見。
如果選擇「PHP 函數」作為權限,那麼區塊內容只會根據指定 PHP 函數的返回值進行顯示。
隱藏
如果選擇「每個人」作為權限,那麼區塊內容將對每個人隱藏。
如果選擇「會員」作為權限,那麼區塊內容將對已登錄用戶隱藏。
如果選擇「指定用戶角色的會員」作為權限,那麼區塊內容將對具備指定用戶角色的會員隱藏。
如果選擇「指定用戶」作為權限,那麼區塊內容將對指定的用戶隱藏。
如果選擇「指定設備」作為權限,那麼區塊內容將對指定的設備(例如桌面,手機和/或平板電腦)隱藏。
如果選擇「日期範圍」作為權限,那麼區塊內容將在指定日期範圍內隱藏。
如果選擇「時間範圍」作為權限,那麼區塊內容將在指定時間範圍內隱藏。
如果選擇「每週某天」作為權限,那麼區塊內容將在指定的某些天隱藏。
如果選擇「PHP 函數」作為權限,那麼區塊內容只會根據指定 PHP 函數的返回值進行隱藏。
外掛標籤
開發者團隊
原文外掛簡介
Full Documentation
How To Use
Activate ‘Block Permissions’ plugin.
Edit any page with Gutenberg editor.
If Block Permission is chosen for ‘Show’, the block content will be shown if the settings are validated. Otherwise block content will be hidden.
Show
If ‘Everyone’ is selected as the permission, the block content will be shown for everyone.
If ‘Members’ is selected as the permission, the block content will be shown for the logged in users.
If ‘Members with Selected User Roles’ is selected as the permission, the block content will be shown only for the members with specified user roles.
If ‘Selected Users’ is selected as the permission, the block content will be shown only to the specified users.
If ‘Selected Devices’ is selected as the permission, the block content will be shown for the specified devices, such as Desktops, Phones and/or Tablets.
If ‘Date Range’ is selected as the permission, the block content will be shown between the specified dates.
If ‘Time Range’ is selected as the permission, the block content will be shown between the specified times.
If ‘Day Of Week’ is selected as the permission, the block content will be shown on the specified days.
If ‘PHP Function’ is selected as the permission, the block content will be shown according to the return value of the specified PHP function.
Hide
If ‘Everyone’ is selected as the permission, the block content will be hidden from everyone.
If ‘Members’ is selected as the permission, the block content will be hidden from the logged in users.
If ‘Members with Selected User Roles’ is selected as the permission, the block content will be hidden from the members with specified user roles.
If ‘Selected Users’ is selected as the permission, the block content will be hidden from the specified users.
If ‘Selected Devices’ is selected as the permission, the block content will be hidden from the specified devices, such as Desktops, Phones and/or Tablets.
If ‘Date Range’ is selected as the permission, the block content will be hidden between the specified dates.
If ‘Time Range’ is selected as the permission, the block content will be hidden between the specified times.
If ‘Day Of Week’ is selected as the permission, the block content will be hidden on the specified days.
If ‘PHP Function’ is selected as the permission, the block content will be hidden according to the return value of the specified PHP function.
