icon

Remove [icon] shortcode.


Usage

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

Defined (2)

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

/better-font-awesome-library/better-font-awesome-library.php  
  1. /* Remove [icon] shortcode. 
  2. * @since 1.0.0 
  3. */ 
  4. public function remove_icon_shortcode() { 
  5. remove_shortcode( 'icon' ); 
  6.  
  7. /** 
  8. * Add [icon] shortcode. 
  1. /* [icon name="flag" class="fw 2x spin" unprefixed_class="custom_class"] 
  2. * @since 1.0.0 
  3. */ 
  4. public function add_icon_shortcode() { 
  5. add_shortcode( 'icon', array( $this, 'render_shortcode' ) ); 
  6.  
  7. /** 
  8. * Render [icon] shortcode.