<slug>

Adds sticky admin notification.

Description

fs_apply_filter( '<slug>', (string) $sticky_message_id, (unknown) $message ); 

Parameters (2)

0. $sticky_message_id (string) => "sticky_message_{$id}"
The sticky message id.
1. $message (unknown)
The message.

Usage

To run the hook, copy the example below.
  1. $sticky_message_id = fs_apply_filter( '{$slug}', $sticky_message_id, $message ); 
  2.  
  3. if ( !empty( $sticky_message_id ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the <slug> callback 
  2. function filter_slug( $sticky_message_id, $message ) { 
  3. // make filter magic happen here... 
  4. return $sticky_message_id
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$slug}", 'filter_slug', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$slug}", 'filter_slug', 10, 2 ); 

Defined (2)

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

/freemius/includes/managers/class-fs-admin-notice-manager.php  
  1. $message = fs_apply_filter( $this->_slug, "sticky_message_{$id}", $message ); 
  1. $title = fs_apply_filter( $this->_slug, "sticky_title_{$id}", $title );