bp_admin_notices

  • do_action( 'bp_admin_notices' )

    Source Reference:

    • Component: BuddyPress:: bp-core
      File: /bp-core/admin/bp-core-update.php :: Trac Source Line: 156
      		?>
      
      		<div class="wrap" id="bp-admin">
      
      			<?php screen_icon( 'buddypress' ); ?>
      
      			<h2><?php printf( __( 'BuddyPress %s', 'buddypress' ), $type ); ?></h2>
      
      			<?php
      				do_action( 'bp_admin_notices' );
      
      				$step_count  = count( $this->steps ) - 1;
      				$wiz_or_set  = $this->current_step >= $step_count ? 'bp-general-settings' : 'bp-wizard';
      				$form_action = bp_core_update_do_network_admin() ? network_admin_url( add_query_arg( array( 'page' => $wiz_or_set ), 'admin.php' ) ) : admin_url( add_query_arg( array( 'page' => $wiz_or_set ), 'admin.php' ) );
      			?>
      
      			<form action="<?php echo $form_action; ?>" method="post" id="bp-admin-form">
      				<div id="bp-admin-nav">
      					<ol>
      

Hook: add_action: bp_admin_notices instances (2)

  • add_action( 'bp_admin_notices', '_bp_core_wizard_step_permalinks_message' )
    $function_to_add: _bp_core_wizard_step_permalinks_message
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/admin/bp-core-update.php :: Trac Source Line: 946
      					</p></div>
      
      				<?php
      				}
      
      				if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && !empty( $_POST['skip-htaccess'] ) ) {
      					return true;
      				} else {
      					add_action( 'bp_admin_notices', '_bp_core_wizard_step_permalinks_message' );
      					return false;
      				}
      			}
      
      			return true;
      		}
      
      		return false;
      	}
      

Hook: add_action: bp_admin_notices instances (2)

  • add_action( 'bp_admin_notices', 'bp_core_wizard_message' )
    $function_to_add: bp_core_wizard_message
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/admin/bp-core-update.php :: Trac Source Line: 1169
      	else
      		return false; ?>
      
      	<div id="message" class="updated">
      		<p><?php echo esc_attr( $message ) ?></p>
      	</div>
      
      <?php
      }
      add_action( 'bp_admin_notices', 'bp_core_wizard_message' );
      
      // Alter thickbox screens so the entire plugin download and install
      // interface is contained within.
      function bp_core_wizard_thickbox() {
      	$form_action = bp_core_update_do_network_admin() ? network_admin_url( add_query_arg( array( 'page' => 'bp-wizard', 'updated' => '1' ), 'admin.php' ) ) : admin_url( add_query_arg( array( 'page' => 'bp-wizard', 'updated' => '1' ), 'admin.php' ) ); ?>
      
      	<script type="text/javascript">
      		jQuery('p.action-button a').attr( 'target', '' );
      
      		if ( window.location != window.parent.location ) {
      

Comments are closed.