Changeset 3483992
- Timestamp:
- 03/16/2026 03:18:14 PM (2 weeks ago)
- Location:
- bp-better-messages
- Files:
-
- 2 edited
-
tags/2.14.0/inc/hooks.php (modified) (2 diffs)
-
trunk/inc/hooks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-better-messages/tags/2.14.0/inc/hooks.php
r3483980 r3483992 38 38 39 39 add_action( 'admin_notices', array( $this, 'admin_notice') ); 40 add_action( 'in_admin_header', array( $this, 'hide_admin_notices_on_bm_pages' ) ); 40 41 41 42 //if( Better_Messages()->settings['fastStart'] == '1' ) { … … 1936 1937 } 1937 1938 1939 public function hide_admin_notices_on_bm_pages(){ 1940 $screen = get_current_screen(); 1941 if( ! $screen || strpos( $screen->id, 'better-messages' ) === false ){ 1942 return; 1943 } 1944 1945 remove_all_actions( 'admin_notices' ); 1946 remove_all_actions( 'all_admin_notices' ); 1947 } 1948 1938 1949 public function admin_notice(){ 1939 1950 $screen = get_current_screen(); -
bp-better-messages/trunk/inc/hooks.php
r3483980 r3483992 38 38 39 39 add_action( 'admin_notices', array( $this, 'admin_notice') ); 40 add_action( 'in_admin_header', array( $this, 'hide_admin_notices_on_bm_pages' ) ); 40 41 41 42 //if( Better_Messages()->settings['fastStart'] == '1' ) { … … 1936 1937 } 1937 1938 1939 public function hide_admin_notices_on_bm_pages(){ 1940 $screen = get_current_screen(); 1941 if( ! $screen || strpos( $screen->id, 'better-messages' ) === false ){ 1942 return; 1943 } 1944 1945 remove_all_actions( 'admin_notices' ); 1946 remove_all_actions( 'all_admin_notices' ); 1947 } 1948 1938 1949 public function admin_notice(){ 1939 1950 $screen = get_current_screen();
Note: See TracChangeset
for help on using the changeset viewer.