开发者 | wickedplugins |
---|---|
更新时间 | 2023年8月22日 23:41 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen by searching for 'Wicked Block Conditions'.Edit a post or page and select the block that you’d like to show or hide based on conditions. In the right sidebar of the editor, you should see a panel labeled 'Display Conditions'. Click the panel to expand it and click the “Add Condition” link to add your first condition.
Click the cog icon to the right of the condition's label.
Click the cog icon to the right of the condition's label to edit the condition and then click the 'Delete' button.
This can be accomplished by using two 'Check The Date' conditions. Click 'Add Condition' and choose the 'Check The Date' condition. Choose the 'After' option and select the date that you'd like to start showing the block (i.e. the start date). Save the condition and add another 'Check The Date' condition but this time choose the 'Before' option and select the date that you'd like to stop showing the block (i.e. the end date).
Be sure that the correct timezone is selected on the Settings > General page in WordPress and that the date and time you specified for your condition is for that timezone.
Every condition returns true or false based on whether or not the condition was met. Negating a condition reverses the outcome so that a condition that would normally return true will return false and, a condition that would normally return false returns true instead.
Yes and no. The conditions are not deleted and will still be there if you re-activate the plugin later; however, if you edit a page with conditional blocks while the plugin is deactivated, any conditions that were previously assigned to blocks will be erased.