php Code Example for Shortcode

This code for shortcode, You can make own functions’s shortcode.

function thekroyaard_shortcode(){
return '<div> This is Example </div>;
add_shortcode('short_code_name', 'thekroyaard_shortcode');

What is changeable

<div> …. </div>
add or input any text or function for showing when paste shortcode.
write any name for shortcode, and paste this where you want to show functions.
you can change function name.