PUM_Utils_Alerts::hooks()
Hook into relevant WP actions.
Contents
Description Description
Source Source
File: classes/Utils/Alerts.php
public static function hooks() { if ( is_admin() && current_user_can( 'edit_posts' ) ) { add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) ); add_action( 'network_admin_notices', array( __CLASS__, 'admin_notices' ) ); add_action( 'user_admin_notices', array( __CLASS__, 'admin_notices' ) ); } }
Expand full source code Collapse full source code View on Trac