WP-ShowHide 3.0.0
-
WP-ShowHide 3.0.0 is a total rewrite of the plugin with Claude Code to make it more modern and testable. There will be breaking changes. Please do test it https://github.com/lesterchan/wp-showhide/archive/refs/heads/master.zip
WP-ShowHide 3.0.0 requires WordPress 6.8 and PHP 8.2. A site on an older stack is simply not offered the update, so if WP-ShowHide has stopped appearing in your updates list, that is why.
Posts need no editing: the [showhide] shortcode, all four of its attributes, the IDs and classes it renders and the three sh-link:* events are unchanged.
Check your theme for the plugin’s old global functions. showhide_scripts(), showhide_js() and showhide_shortcode() are removed, so a theme calling one will fatal. They were never meant to be called; the plugin registers its own shortcode and its own assets. If you were unhooking showhide_scripts to suppress the stylesheet, that no longer removes anything — dequeue the style instead:
add_action( 'wp_enqueue_scripts', function () {wp_dequeue_style( 'wp-showhide' );}, 20 );The two classes are renamed. ShowHide is now WP_ShowHide and ShowHide_Template is now WP_ShowHide_Template. Neither is needed in normal use.
The script and the stylesheet are files now, not inline blocks, served from the plugin’s own js/ and css/ directories, so a caching or minifying plugin will see them for the first time. Let it rebuild after you update.
The plugin now stores one row, wp_showhide_version, and deletes it on uninstall. There is still no settings screen and nothing to configure.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.