Skip to content

Instantly share code, notes, and snippets.

@timoleinio
Created December 19, 2013 16:48
Show Gist options
  • Save timoleinio/8042400 to your computer and use it in GitHub Desktop.
Save timoleinio/8042400 to your computer and use it in GitHub Desktop.
Short WordPress plugin example
<?php
/*
Plugin Name: WP-Opas lisäosa
Plugin URI: http://wpopas.fi
Description: Lisäosa esimerkki
Version: 1.0
Author: Timo Leiniö
Author URI: http://wpopas.fi
License:
License URI:
*/
add_shortcode( 'Hello' , 'hello_world' );
function hello_world(){
echo 'Moikka maailma!';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment