aioseop_output_notice

The All In One SEO Pack aioseop output notice function.

Description

aioseop_output_notice( $message, (string) $id = '', (string) $class = 'updated fade' ); 

Parameters (3)

0. $message
The message.
1. $id — Optional. (string) => ''
The id.
2. $class — Optional. (string) => 'updated fade'
The class.

Usage

  1. if ( !function_exists( 'aioseop_output_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; 
  3.  
  4. // The message. 
  5. $message = null; 
  6.  
  7. // The id. 
  8. $id = ''; 
  9.  
  10. // The class. 
  11. $class = 'updated fade'; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = aioseop_output_notice($message, $id, $class); 
  15.  

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_output_notice( $message, $id = '', $class = 'updated fade' ) { 
  2. $class = 'aioseop_notice ' . $class; 
  3. if ( ! empty( $class ) ) { 
  4. $class = ' class="' . esc_attr( $class ) . '"'; 
  5. if ( ! empty( $id ) ) { 
  6. $class .= ' id="' . esc_attr( $id ) . '"'; 
  7. $dismiss = ' '; 
  8. echo "<div{$class}>" . wp_kses_post( $message ) . '<br class=clear /></div>'; 
  9.  
  10. return true;