Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_shortcode( "shortcode_name", "func_name" );
- function func_name ($atts) {
- $atts = shortcode_atts(
- array(
- 'attr_name' => 'attr_default_value' // attribute name and default value
- ), $atts );
- ?>
- // for using attribute in code
- $atts['attr_name']
Add Comment
Please, Sign In to add comment