recipe-notes

The WordPress Core recipe notes shortcode.


Usage

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

Defined (1)

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

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