Google Tag Manager - Head
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXXXXXX'+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXXXXXX');
Modify Software Licensing License Structure
Modify the structure of Software Licensing's license keys.
Maintain+ Footer Credit
jQuery("footer").append(" Site managed by Maintain+ ")
Fix the InvalidInternetMessageHeader Error in Outlook
This snippet will modify specific headers in your emails, which can help resolve this ‘InvalidInternetMessageHeader’ error…
Adds URL to pages window
add_filter('manage_page_posts_columns', 'my_custom_column', 10); add_action('manage_page_posts_custom_column', 'add_my_custom_column', 10, 2); function my_custom_column($defaults) { $defaults['url'] = 'URL'; return $defaults; }…
add 2 nos
function addNumbers() { // Get input values const num1 = parseFloat(document.getElementById('num1').value); const num2 = parseFloat(document.getElementById('num2').value); //…
Header and Footer
Copy/pasted form docket
aa
add_action('admin_notices', function () { if (!current_user_can('manage_options')) { return; } echo 'WPCode test is working.'; echo 'Application…
Show Featured Image With Purchase Link
Shows a download's featured image with the purchase link
Multipost Query Loop
This code snippet adds the ability to add multiple posts to the Generate Blocks Query Loop
featured-images-rss-feed
function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '<div>' . get_the_post_thumbnail(…
Add Subscriber to Segment
This snippet helps you add the push subscriber to the segment as per the action defined.
Current Year Shortcode
Adding the option to use the current year [year] shortcode on your website on any website,…