button

Add_shortcodes.


Usage

  1. // basic usage 
  2. echo do_shortcode('[button]'); 
  1. // variable usage 
  2. $result = do_shortcode('[button]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/functions.php  
  1.  
  2. return '<div class="video-embed"><iframe title="YouTube video player" width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="http://www.youtube.com/embed/' . $atts['id'] . '" frameborder="0" allowfullscreen></iframe></div>'; 
  3.  
  4. // Button 
  5. add_shortcode('button', 'shortcode_button'); 
  6. function shortcode_button($atts, $content = null) { 
  7. $atts = shortcode_atts( 
  8. array( 
  9. 'color' => 'red',  
  10. 'url' => '#',