Code Snippets

Add code snippets including HTML, PHP, CSS and JS to your site easily without touching functions.php or child themes. Each snippet can be activated and deactivated individually, and even exported to a different site. A very handy plugin during WordPress site building.


This tiny code snippet has been added using Code Snippets

add_shortcode( 'DisplayPHPVersion', function () {
	$out = '<p>Current PHP version: ' . phpversion() . '</p>';
	return $out;
} );

And below the added shortcode is being used:

Current PHP version (snippet edited oktober 2022): 8.0.25

Extract from

Most snippet-hosting sites tell you to add snippet code to your active theme’s functions.php file, which can get rather long and messy after a while. Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.

Leave a Reply

Your email address will not be published. Required fields are marked *