Comments for WPCode Library https://library.wpcode.com Tue, 27 Jan 2026 20:27:02 +0000 hourly 1 https://wordpress.org/?v=6.9.4 Comment on My Insert widget in header by Greg A https://library.wpcode.com/snippet/323qn15r/#comment-135638 Tue, 27 Jan 2026 20:27:02 +0000 https://library.wpcode.com/?post_type=wpcsl&p=4289#comment-135638 When I try to add this code to WPCode plugin I get this message: The code snippet has not been included, the following error was encountered: “syntax error, unexpected token “<", expecting end of file". It only works when I put the lines 1-13 into the WPCode plugin and lines 14-21 manually to the theme header.php (I skip the lines 22+). The downside of this is, when I update my wp theme I need to re-insert the lines 14-21 to the header each time. It would be nice if it worked automatically.

]]>
Comment on Untitled Snippet by profiler book https://library.wpcode.com/snippet/x5ng6xgo/#comment-130460 Thu, 25 Dec 2025 19:38:50 +0000 https://library.wpcode.com/?post_type=wpcsl&p=56332#comment-130460 Welcome to profilerbook

]]>
Comment on Disable the “grab image” setting for Divi on checkout by Adnan Aqeel https://library.wpcode.com/snippet/qor1pwj5/#comment-123089 Wed, 19 Nov 2025 09:44:46 +0000 https://library.wpcode.com/?post_type=wpcsl&p=41084#comment-123089 ..

]]>
Comment on Completely Disable Comments by WPCode Team https://library.wpcode.com/snippet/323jqeor/#comment-118350 Wed, 22 Oct 2025 09:08:41 +0000 https://library.wpcode.com/?post_type=wpcsl&p=765#comment-118350 In reply to Steven V.

Thank you for the suggestion Steven.

Some of the options on the Discussion settings page impact more than just the comments feature.

Completely removing the Discussion settings page could also hide configuration choices that might still be relevant for the site, even without comments enabled.

However, If you do want to hide the Discussion settings page from the menu, you can simply add this code to your snippet:

add_action(‘admin_menu’, function () {
remove_submenu_page(‘options-general.php’, ‘options-discussion.php’);
});

]]>
Comment on Completely Disable Comments by Steven V https://library.wpcode.com/snippet/323jqeor/#comment-118159 Tue, 21 Oct 2025 06:52:04 +0000 https://library.wpcode.com/?post_type=wpcsl&p=765#comment-118159 Thank you for providing this very useful code snippet. However, wouldn’t it make sense to extend this snippet with extra code that removes the ‘Settings Discussion Screen’ from the Settings as well? AFAIK, the Discussion Settings are only relevant for comments.

]]>
Comment on Untitled Snippet by Azizul Sheikh https://library.wpcode.com/snippet/rove6g85/#comment-115084 Tue, 30 Sep 2025 18:32:48 +0000 https://library.wpcode.com/?post_type=wpcsl&p=48871#comment-115084 Thanks to very much nice job

]]>
Comment on enr_weekly_digest by Patrick Nzeogu https://library.wpcode.com/snippet/ro8n7q9o/#comment-113268 Fri, 19 Sep 2025 21:43:26 +0000 https://library.wpcode.com/?post_type=wpcsl&p=48391#comment-113268 Lets find outif this does the trick bro

]]>
Comment on Disable XML-RPC by Najmul Hoque https://library.wpcode.com/snippet/e5wm4xod/#comment-112172 Sat, 13 Sep 2025 01:50:00 +0000 https://library.wpcode.com/?post_type=wpcsl&p=744#comment-112172

]]>
Comment on Open External Links in a New Tab by WPCode Team https://library.wpcode.com/snippet/rod97yg2/#comment-109167 Thu, 28 Aug 2025 08:14:11 +0000 https://library.wpcode.com/?post_type=wpcsl&p=17250#comment-109167 In reply to Scott Jenkins.

Thank you for reporting this! We can replicate the issue on our end and we will issue an update for this snippet very soon.

]]>
Comment on Open External Links in a New Tab by Scott Jenkins https://library.wpcode.com/snippet/rod97yg2/#comment-109047 Wed, 27 Aug 2025 17:15:23 +0000 https://library.wpcode.com/?post_type=wpcsl&p=17250#comment-109047 This snippet ia throwing an error (line 11 “mb_convert_encoding” is depreciated)

]]>