Changeset 3409786
- Timestamp:
- 12/03/2025 03:56:23 PM (6 weeks ago)
- Location:
- osom-block-visibility
- Files:
-
- 26 added
- 2 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/LICENSE (added)
-
tags/1.0.2/build (added)
-
tags/1.0.2/build/editor.asset.php (added)
-
tags/1.0.2/build/editor.css (added)
-
tags/1.0.2/build/editor.css.map (added)
-
tags/1.0.2/build/index.asset.php (added)
-
tags/1.0.2/build/index.js (added)
-
tags/1.0.2/build/index.js.map (added)
-
tags/1.0.2/build/style.asset.php (added)
-
tags/1.0.2/build/style.css (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/languages/osom-block-visibility.pot (added)
-
tags/1.0.2/osom-block-visibility.php (added)
-
tags/1.0.2/package-lock.json (added)
-
tags/1.0.2/package.json (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/src (added)
-
tags/1.0.2/src/editor.scss (added)
-
tags/1.0.2/src/index.js (added)
-
tags/1.0.2/src/index.scss (added)
-
tags/1.0.2/webpack.config.js (added)
-
trunk/osom-block-visibility.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/src (added)
-
trunk/src/editor.scss (added)
-
trunk/src/index.js (added)
-
trunk/src/index.scss (added)
Legend:
- Unmodified
- Added
- Removed
-
osom-block-visibility/trunk/osom-block-visibility.php
r3046463 r3409786 4 4 * Plugin URI: https://osompress.com/plugins/osom-block-visibility/ 5 5 * Description: Adds a toggle to blocks that allows you to hide the content on mobile or desktop devices. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Requires at least: 6.3 8 8 * Requires PHP: 7.4 … … 122 122 return $result; 123 123 } 124 125 126 add_filter( 'block_type_metadata', 'osom_disable_block_visibility_support' ); 127 /** 128 * Disable native WordPress visibility support for all blocks. 129 */ 130 function osom_disable_block_visibility_support( $metadata ) { 131 if ( ! isset( $metadata['supports'] ) ) { 132 $metadata['supports'] = array(); 133 } 134 $metadata['supports']['visibility'] = false; 135 return $metadata; 136 } -
osom-block-visibility/trunk/readme.txt
r3288508 r3409786 4 4 Tags: hide block, hide content, visibility, conditional blocks, hide on mobile 5 5 Requires at least: 6.3 6 Tested up to: 6. 87 Stable tag: 1.0. 16 Tested up to: 6.9 7 Stable tag: 1.0.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Osom Block Visibility lets you easily control block visibility from WordPress Block Editor.13 12 14 13 == Description == … … 24 23 25 24 The new Visibility Settings in the block editor will let you: 26 27 25 1. Hide the block on desktop. 28 26 2. Hide the block on mobile and tablet. … … 31 29 32 30 You can use it for: 33 34 31 * Hide any block on mobile and tablets to improve performance. 35 32 * Display/hide some menu items dependending if the user it's loggedin or not (on block themes). … … 99 96 == Changelog == 100 97 98 = 1.0.2 = 99 * Disable native WordPress block visibility support for all blocks to prevent conflicts with plugin functionality. 100 101 101 = 1.0.1 = 102 102 * Fix issues with server-side registered blocks.
Note: See TracChangeset
for help on using the changeset viewer.