Snippet Category: Code Snippet

jQuery Copy Button

Learn how to create a simple, reusable copy-to-clipboard feature using jQuery and data attributes. This method avoids hardcoded IDs and works with any HTML element, making it ideal for improving user experience with minimal code.

Read More
Manual Google Ping for a Sitemap

Sometimes the older method of doing something is the easiest. Here you will find the way to submit your sites xml sitemap file without having to set up Google Search Console.

Read More
Media Library Mime Types to WordPress

This is the type of code that needs to be added to your functions.php file in order to allow you to upload files into your media library. function custom_myme_types($mime_types){ //add a new array item to this array to allow uploading of that file type. $new_mime_types = array( 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'webm' => […]

Read More
Oxygen Builder Search Results Conditional Check

You can use conditional statements In Oxygen Builder and this one allows you to use it on a search results page based on if there are search results.

Read More
PHP CURL Sample

function send_post_request($url, $data = array()) { // Initialize cURL session $curl = curl_init(); // Set the URL to send the POST request to curl_setopt($curl, CURLOPT_URL, $url); // Set the request method to POST curl_setopt($curl, CURLOPT_POST, true); // Set the POST data if (!empty($data)) { curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); } // Set cURL options to include response […]

Read More
Plugin Action Links

Adding settings links to the plugin display on plugins page.

Read More
Plugin Shortcode Attributes Usage

When creating shortcodes, a lot of times you want to pass information through to the output via attributes. Here is the code example that you want to use.

Read More
Shortcode Manager via Options Page

Use ACF Pro to create and manage reusable shortcodes in WordPress. Easily output custom HTML or JavaScript anywhere with a dynamic shortcode system—perfect for developers and site admins.

Read More
Stop Direct File Access

It is always good to put this at the top of any PHP file that you write to ensure it is only called within the WordPress system.

Read More

Latest Blog Articles

Voice Search Optimization: Strategies for Web Developers and SEO Experts

This article provides a comprehensive overview of strategies for optimizing websites for voice search, aimed at web developers and SEO experts looking to enhance their digital presence and adapt to the changing landscape of user search behavior.

Read More
Mastering Schema in 2024: Enhancing Web Presence and SEO Strategy

In the dynamic realm of digital marketing and search engine optimization (SEO), understanding and leveraging schema markup has become increasingly crucial for businesses and webmasters aiming to enhance their online visibility in 2024. Schema markup, a code that you can add to your website, helps search engines return more informative results for users. By implementing […]

Read More
ProtonMail: Elevating Privacy and Security in Digital Communication

In the arena of digital communication, the significance of data privacy and security cannot be overstated. Privacy concerns have been a lightning rod for discussion, particularly in the wake of recent high-profile data breaches and controversies around the handling of personal data by several tech giants. It is in this climate that ProtonMail, an email […]

Read More
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram