recipe-directions

The WordPress Core recipe directions shortcode.


Usage

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

Defined (1)

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

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