
內容簡介
你的內容,你的規則。決定誰何時看到什麼。無需設置或複雜的設置。撰寫內容,決定誰應該看到它,然後發布。
內容可見性提供了一組控制項,用於指定每個獨立內容(或WordPress慣例中的“區塊”)是否應顯示給已登錄到您的網站上的使用者。其他附加元件提供了基於角色的可見性控制、基於時間的可見性控制和基於地點的可見性控制。您還可以向使用RSS閱讀器的人顯示或隱藏區塊。
個別區塊控制
您網站上所有文章、頁面(和自定義文章類型)上的每個獨立區塊都可以有自己的控制。在單個頁面上混合和匹配區塊的可見性。需要所有人都能看到一些區塊,但只有您網站的訂閱者才能使用其中的一些?沒問題。想要在聖誕節只顯示一條消息?輕鬆搞定。只想讓那些已登錄到您的網站上的人看到某些內容?輕鬆易辦。
一覽無遺
每個帶有活動規則的區塊旁邊的圖標讓您的內容作者一眼就能看到哪些區塊可能會顯示給某些特定觀眾。
可重複使用的區塊
使用可重複使用的區塊?沒問題,內容可見性也處理這些。
列和嵌套區塊
您使用列並將其他區塊放入其中嗎?內容可見性允許您控制嵌套區塊(例如在列區塊中的段落區塊)或父區塊本身(或許隱藏整個列區塊給未登錄用戶?)。其他嵌套區塊的示例包括群組區塊或如果您使用手風琴或選項卡區塊;所有都可以!
小插件
自版本0.1.7以來,您現在可以控制小插件的可見性。只要您的Gutenberg插件版本為9.9或更高,您就可以像在內容編輯器中一樣在所有小插件中使用內容可見性。限制您的小插件在您的網站特定URL上的顯示。想要將特定文本區塊僅顯示給已登錄並僅限於搜索結果的人?可以輕鬆實現。
版本0.2.5添加了在特定類別或標籤中顯示或隱藏小插件的功能。
即將到來
[ ] 隱藏區塊時設置替換內容的方法
[ ] REST API探索。對於未經身份驗證的請求應該沒問題,但需要深入挖掘進行身份驗證
[ ] 非平凡日期。想想像“每週三下午3點到4點”或“11月的前兩週”之類的東西
[x] 地理位置: 將此區塊僅顯示給連接在法國的用戶。
[x] 指定用戶: 向一個或多個特定用戶顯示或隱藏區塊。
[ ] 特定第三方插件集成。當有人從您的WooCommerce商店購買某些東西時顯示一個區塊。或者當有人提交特定的Gravity表單時。
[ ] 您有任何功能請求嗎?告訴我!
發展
開發大部分都是在
外掛標籤
開發者團隊
原文外掛簡介
Your Content. Your Rules. Decide who sees what and when. No setup or complex settings. Write content, decide who should see it, and press publish.
Content Visibility provides a set of controls to say whether each discrete piece of content (or ‘block’ in WordPress parlance) should be shown to users who are signed in to your site or not. Additional add-ons provide controls for role-based visibility, time-based visibility, and location-based visibility. You can also show or hide blocks to folks using RSS Readers.
Individual Block Controls
Every individual block on all posts and pages (and custom post types) on your site can have their own controls. Mix and match the visibility of blocks on a single page. Need some blocks to show to everyone and a few to only be available to your site’s subscribers? No problem. Only want a message to appear on Christmas Day? You got it. Only want those who are signed in to your site to see certain pieces of content? Easy peasy.
At a glance
An icon next to each block with active rules allows your content authors to see which blocks may or may not be shown to certain audiences at a glance.
Reusable blocks
Use Reusable Blocks? No problem, Content Visibility handles those too.
Columns and Nested Blocks
Do you use columns and put other blocks in them? Content Visibility allows you to control both the ‘nested’ blocks (such as a paragraph block in a column block) or the ‘parent’ block themselves (perhaps hide an entire column for users who aren’t signed in?). Other examples of nested blocks are the Group Block or if you use an accordion or tabs block; all work!
Widgets
Since version 0.1.7 you are now able to control the visibility of your widgets. As long as you have version 9.9 or above of the Gutenberg plugin you are able to use content visibility on all of your widgets, just like you can with all of your blocks in the content editor. Limit display of your widgets on specific URLs on your site. Want to show a specific text block to only people who are signed in and ONLY on search results? You got it.
Version 0.2.5 adds the ability to show or hide your widgets on posts that are in specific category or tags.
Coming Soon
[ ] A way to set replacement content when a block is hidden
[ ] REST API exploration. Should be fine for non-authenticated requests, but need to dive deeper for auth’d requests
[ ] Non-trivial dates. Think things like “Every Wednesday between 3pm and 4pm” or “First two weeks in November”
[x] Geolocation: Show this block only to users whose connection is in France.
[x] Specific Users: Show or hide a block to one or more specific users.
[ ] Specific 3rd-party plugin integrations. Show a block when someone has purchased something from your WooCommerce store. Or when someone has submitted a specific Gravity Form.
[ ] Do you have any feature requests? Let me know!
Development
Development is mostly done on github and releases are made there and here to the WordPress plugins directory.
