recipe-ingredients

The WordPress Core recipe ingredients shortcode.


Usage

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

Defined (1)

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

/modules/shortcodes/recipe.php  
  1. add_action( 'wp_head', array( $this, 'add_scripts' ), 1 ); 
  2.  
  3. // Render [recipe], along with other shortcodes that can be nested within. 
  4. add_shortcode( 'recipe', array( $this, 'recipe_shortcode' ) ); 
  5. add_shortcode( 'recipe-notes', array( $this, 'recipe_notes_shortcode' ) ); 
  6. add_shortcode( 'recipe-ingredients', array( $this, 'recipe_ingredients_shortcode' ) ); 
  7. add_shortcode( 'recipe-directions', array( $this, 'recipe_directions_shortcode' ) ); 
  8.  
  9. /** 
  10. * Enqueue scripts and styles