How to Allow Upload SVG Files in WordPress Media Library Code | Function.php
This code is a set of WordPress filters designed to enable the upload of SVG (Scalable…
Current Year Shortcode
Adding the option to use the current year [year] shortcode on your website on any website,…
Chatbot backend
function generate_chat_response( $last_prompt, $conversation_history ) { // OpenAI API URL and key $api_url = 'https://modelsearch1.openai.azure.com/openai/deployments/gpt-35-turbo-StoreWayfinder/chat/completions'; $api_key…
increase max file size
a snippet to increase max file size to allow WP staging pro upload
Add the fields to the user edit screen
// Add the fields to user edit screen. add_action( 'show_user_profile', 'add_extra_user_fields' ); add_action( 'edit_user_profile', 'add_extra_user_fields' );…
Defining SparkPost Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
om-nextjs.js
import { useEffect } from 'react'; import { useRouter } from 'next/router'; const OptinMonsterEmbed = ()…
Removing File Upload Fields from Notifications
This code snippet will remove the File Upload fields from Notifications when File Access Restrictions are…
aa
add_action('admin_notices', function () { if (!current_user_can('manage_options')) { return; } echo 'WPCode test is working.'; echo 'Application…
Hiding Your Identity For Amazon SES Mailer Setup
This snippet will enhance privacy and domain restrictions using WP Mail SMTP with Amazon SES mailer.…
Change "City" To Town/City
Change the label of the"City" field into a "Town/City" field.
Google Search Console Verification
HTML tag
Limit user posts
A settings page to set the number of posts all users can create
Remove Manage Sites
Removes the Manage Sites column from the licenses table on the customer purchase history page
Completely Disable Comments
add_action('admin_init', function () { // Redirect any user trying to access comments page global $pagenow; if…