AI Verified
Allow SVG
Allow SVG upload without a plugin
PHP
Voted: 4 by 4 user(s)
pste into your functions php
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: Not Specified
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
04/07/2024
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
-------------------------------------------------------------------------------------------------------------
Name | Potential vulnerability found : File Inclusion / Path Traversal
Line | 20
Code | file_get_contents($path)
Code | Line | 18 : $path = get_attached_file($attachment->ID));
Name | Potential vulnerability found : XML External Entity
Line | 20
Code | SimpleXMLElement(@file_get_contents($path)
Code | Line | 18 : $path = get_attached_file($attachment->ID));
Found 2 vulnerabilities
4
Please see some snippets below related to this snippet..
General
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Code removes the Custom Post Type (CPT) name from the URL slug.
General
AI Verified
General
AI Verified
Added: 9 months ago
Last Updated: 9 months ago
<p>Disable Wordpress emojis to improve site performance, taken from: https://kinsta.com/knowledgebase/disable-emojis-wordpress/#disable-emojis-code</p>
These are some popular snippets from this users codevault..
Category
Snippet Status