Skip to content

Commit

Permalink
🔖 Prepare version 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MatzeKitt committed Nov 5, 2024
1 parent 544bd6a commit 781428b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Block Control allows you to take control of all the blocks on your website. Tailor a unique experience for your visitors.

Have you ever used WordPress’ new block editor Gutenberg and wished for a way to influence, when and to whom blocks are shown? We’ve been in this situation, that’s why we came up with _Block Control_. This nifty little plugin allows you to control, whether a block should be displayed under certain circumstances or not. And that’s of course true for both WordPress’ default blocks and blocks added by third-party plugins.
Have you ever used WordPress’ new block editor Gutenberg and wished for a way to influence, when and to whom blocks are shown? We’ve been in this situation, that’s why we came up with Block Control. This nifty little plugin allows you to control, whether a block should be displayed under certain circumstances or not. And that’s of course true for both WordPress’ default blocks and blocks added by third-party plugins.

You can hide blocks based on:
* Device types (desktop, mobile, screen reader)
Expand All @@ -23,14 +23,14 @@ WordPress: 6.2

1. Upload the plugin files to the `/wp-content/plugins/block-control` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Now you can use the “Visibility” panel, _Block Control_ adds to every block withing the Gutenberg editor.
1. Now you can use the “Visibility” panel, Block Control adds to every block withing the Gutenberg editor.


## Frequently Asked Questions

### How do I use Block Control?

After you install and activate _Block Control_, you will find a new panel “Visibility” added to every blocks right hand side sidebar. Open the panel to choose a condition for the display of a given block.
After you install and activate Block Control, you will find a new panel “Visibility” added to every blocks right hand side sidebar. Open the panel to choose a condition for the display of a given block.

Conditional blocks configured this way will only be displayed under certain circumstances chosen by you. Please note, these conditions will only take effect in the front end of your site, not inside the editor itself.

Expand All @@ -56,7 +56,7 @@ add_filter( 'block_control_ignored_post_types', 'my_filter_block_control_post_ty

### Who are you folks?

We are [Epiph.yt](https://epiph.yt/), your friendly neighborhood WordPress plugin shop from southern Germany.
We are [Epiph.yt](https://epiph.yt/en/), your friendly neighborhood WordPress plugin shop from southern Germany.

## License

Expand Down
21 changes: 12 additions & 9 deletions block-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@
use function wp_doing_ajax;

/*
Plugin Name: Block Control
Description: Control the visibility of your Gutenberg blocks by conditions.
Author: Epiphyt
Author URI: https://epiph.yt
Version: 1.3.0
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: block-control
Domain Path: /languages
Plugin Name: Block Control
Description: Control the visibility of your Gutenberg blocks by conditions.
Version: 1.4.0
Author URI: https://epiph.yt/en/
Author: Epiphyt
Domain Path: /languages
License URI: https://www.gnu.org/licenses/gpl-2.0.html
License: GPL2
Requires at least: 6.2
Requires PHP: 5.6
Tested up to: 6.7
Text Domain: block-control
Block Control is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
19 changes: 11 additions & 8 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: epiphyt, kittmedia, krafit
Tags: gutenberg, block, conditional, visibility, block editor
Requires at least: 6.2
Stable tag: 1.3.0
Tested up to: 6.6
Tested up to: 6.7
Requires PHP: 5.6
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -12,7 +12,7 @@ Block Control allows you to take control of all the blocks on your website. Tail

== Description ==

Have you ever used WordPress’ new block editor Gutenberg and wished for a way to influence, when and to whom blocks are shown? We’ve been in this situation, that’s why we came up with _Block Control_. This nifty little plugin allows you to control, whether a block should be displayed under certain circumstances or not. And that’s of course true for both WordPress’ default blocks and blocks added by third-party plugins.
Have you ever used WordPress’ new block editor Gutenberg and wished for a way to influence, when and to whom blocks are shown? We’ve been in this situation, that’s why we came up with Block Control. This nifty little plugin allows you to control, whether a block should be displayed under certain circumstances or not. And that’s of course true for both WordPress’ default blocks and blocks added by third-party plugins.

You can hide blocks based on:

Expand All @@ -29,14 +29,14 @@ Additionally, you can set an inline formatting to display certain text only for

1. Upload the plugin files to the `/wp-content/plugins/block-control` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Now you can use the “Visibility” panel, _Block Control_ adds to every block withing the Gutenberg editor.
1. Now you can use the “Visibility” panel, Block Control adds to every block withing the Gutenberg editor.


== Frequently Asked Questions ==

= How do I use Block Control? =

After you install and activate _Block Control_, you will find a new panel “Visibility” added to every blocks right hand side sidebar. Open the panel to choose a condition for the display of a given block.
After you install and activate Block Control, you will find a new panel “Visibility” added to every blocks right hand side sidebar. Open the panel to choose a condition for the display of a given block.

Conditional blocks configured this way will only be displayed under certain circumstances chosen by you. Please note, these conditions will only take effect in the front end of your site, not inside the editor itself.

Expand All @@ -62,7 +62,7 @@ add_filter( 'block_control_ignored_post_types', 'my_filter_block_control_post_ty

= Who are you folks? =

We are [Epiph.yt](https://epiph.yt/), your friendly neighborhood WordPress plugin shop from southern Germany.
We are [Epiph.yt](https://epiph.yt/en/), your friendly neighborhood WordPress plugin shop from southern Germany.

= Contributing =

Expand All @@ -74,6 +74,9 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro

== Changelog ==

= 1.4.0 =
* We added the possibility to hide inline text for everyone but screen readers.

= 1.3.0 =
* We added the possibility to patterns to hide them by any post type available.
* We extended the list of ignored post types with font families and font faces.
Expand All @@ -95,7 +98,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
* We fixed a problem with some blocks no more saving the visibility settings.

= 1.1.8 =
* We fixed a problem with broken blocks after updating to version 1.1.7. The editor now doesn't contain any classes from _Block Control_ anymore.
* We fixed a problem with broken blocks after updating to version 1.1.7. The editor now doesn't contain any classes from Block Control anymore.

= 1.1.7 =
* We fixed compatibility with dynamic blocks.
Expand All @@ -105,10 +108,10 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro

= 1.1.5 =
* We added a filter `blockControl.unsupportedBlocks` to filter the list of unsupported blocks.
* We disabled _Block Control_ for the SimpleTOC block in order to display it properly in the backend.
* We disabled Block Control for the SimpleTOC block in order to display it properly in the backend.

= 1.1.4 =
* We disabled _Block Control_ for the Polylang language switcher in order to display it properly in the backend.
* We disabled Block Control for the Polylang language switcher in order to display it properly in the backend.

= 1.1.3 =
* We added full support for WordPress 6.1 (replaced a deprecated function).
Expand Down

0 comments on commit 781428b

Please sign in to comment.