bbp_template_notices

  • do_action( 'bbp_template_notices' )

    Source Reference:

    • /**
       * Single User Part
       *
       * @package bbPress
       * @subpackage Theme
       */
      
      ?>
      
      	<?php do_action( 'bbp_template_notices' );
      
      	// Profile details
      	bbp_get_template_part( 'bbpress/user', 'details'        );
      
      	// Subscriptions
      	bbp_get_template_part( 'bbpress/user', 'subscriptions'  );
      
      	// Favorite topics
      	bbp_get_template_part( 'bbpress/user', 'favorites'      );
      
    • Component: bbPress:: bbp-themes
      File: /bbp-themes/bbp-twentyten/archive-forum.php :: Trac Source Line: 17
       */
      
      ?>
      
      <?php get_header(); ?>
      
      		<div id="container">
      			<div id="content" role="main">
      
      				<?php do_action( 'bbp_template_notices' ); ?>
      
      				<div id="forum-front" class="bbp-forum-front">
      					<h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
      					<div class="entry-content">
      
      						<?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
      
      					</div>
      				</div><!-- #forum-front -->
      
    • // No logged in users
      bbp_logged_in_redirect();
      
      // Begin Template
      get_header(); ?>
      
      		<div id="container">
      			<div id="content" role="main">
      
      				<?php do_action( 'bbp_template_notices' ); ?>
      
      				<?php while ( have_posts() ) : the_post(); ?>
      
      					<div id="bbp-lost-pass" class="bbp-lost-pass">
      						<h1 class="entry-title"><?php the_title(); ?></h1>
      						<div class="entry-content">
      
      							<?php the_content(); ?>
      
      							<?php bbp_breadcrumb(); ?>
      
    • extract( bbp_get_statistics(), EXTR_SKIP );
      
      ?>
      
      <?php get_header(); ?>
      
      		<div id="container">
      			<div id="content" role="main">
      
      				<?php do_action( 'bbp_template_notices' ); ?>
      
      				<?php while ( have_posts() ) : the_post(); ?>
      
      					<div id="bbp-statistics" class="bbp-statistics">
      						<h1 class="entry-title"><?php the_title(); ?></h1>
      						<div class="entry-content">
      
      							<?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress' ); ?>
      
      							<dl role="main">
      
    • 					<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
      
      						<div class="bbp-template-notice">
      							<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
      						</div>
      
      					<?php endif; ?>
      
      					<?php do_action( 'bbp_template_notices' ); ?>
      
      					<div>
      
      						<?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
      
      						<?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
      
      						<p>
      							<label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
      							<textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" rows="6"><?php bbp_form_reply_content(); ?></textarea>
      
    • 					<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
      
      						<div class="bbp-template-notice">
      							<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
      						</div>
      
      					<?php endif; ?>
      
      					<?php do_action( 'bbp_template_notices' ); ?>
      
      					<div>
      
      						<?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
      
      						<?php do_action( 'bbp_theme_before_topic_form_title' ); ?>
      
      						<p>
      							<label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
      							<input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
      

Hook: add_action: bbp_template_notices instances (3)

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

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 103
      add_action( 'bbp_widgets_init', array( 'BBP_Topics_Widget',  'register_widget' ), 10 );
      add_action( 'bbp_widgets_init', array( 'BBP_Replies_Widget', 'register_widget' ), 10 );
      
      // Template - Head, foot, errors and messages
      add_action( 'wp_head',              'bbp_head'                    );
      add_filter( 'wp_title',             'bbp_title',            10, 3 );
      add_action( 'wp_footer',            'bbp_footer'                  );
      add_action( 'bbp_loaded',           'bbp_login_notices'           );
      add_action( 'bbp_head',             'bbp_topic_notices'           );
      add_action( 'bbp_template_notices', 'bbp_template_notices'        );
      
      // Add to body class
      add_filter( 'body_class', 'bbp_body_class', 10, 2 );
      
      // Caps & Roles
      add_filter( 'map_meta_cap',     'bbp_map_meta_caps', 10, 4 );
      add_action( 'bbp_activation',   'bbp_add_roles',     1     );
      add_action( 'bbp_activation',   'bbp_add_caps',      2     );
      add_action( 'bbp_deactivation', 'bbp_remove_caps',   1     );
      add_action( 'bbp_deactivation', 'bbp_remove_roles',  2     );
      

Hook: add_action: bbp_template_notices instances (3)

  • add_action( 'bbp_template_notices', 'bbp_notice_edit_user_success'           )
    $function_to_add: bbp_notice_edit_user_success
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 138
      // Restrict forum access
      add_action( 'template_redirect', 'bbp_forum_enforce_hidden',        -1 );
      add_action( 'template_redirect', 'bbp_forum_enforce_private',       -1 );
      
      // Profile Edit
      add_action( 'template_redirect', 'bbp_edit_user_handler', 1 );
      
      // Profile Page Messages
      add_action( 'bbp_template_notices', 'bbp_notice_edit_user_success'           );
      add_action( 'bbp_template_notices', 'bbp_notice_edit_user_is_super_admin', 2 );
      
      // Update forum branch
      add_action( 'bbp_trashed_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_untrashed_forum', 'bbp_update_forum_walker' );
      add_action( 'bbp_deleted_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_spammed_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_unspammed_forum', 'bbp_update_forum_walker' );
      
      // New/Edit Reply
      

Hook: add_action: bbp_template_notices instances (3)

  • add_action( 'bbp_template_notices', 'bbp_notice_edit_user_is_super_admin', 2 )
    $function_to_add: bbp_notice_edit_user_is_super_admin
    $priority: 2
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 139
      // Restrict forum access
      add_action( 'template_redirect', 'bbp_forum_enforce_hidden',        -1 );
      add_action( 'template_redirect', 'bbp_forum_enforce_private',       -1 );
      
      // Profile Edit
      add_action( 'template_redirect', 'bbp_edit_user_handler', 1 );
      
      // Profile Page Messages
      add_action( 'bbp_template_notices', 'bbp_notice_edit_user_success'           );
      add_action( 'bbp_template_notices', 'bbp_notice_edit_user_is_super_admin', 2 );
      
      // Update forum branch
      add_action( 'bbp_trashed_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_untrashed_forum', 'bbp_update_forum_walker' );
      add_action( 'bbp_deleted_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_spammed_forum',   'bbp_update_forum_walker' );
      add_action( 'bbp_unspammed_forum', 'bbp_update_forum_walker' );
      
      // New/Edit Reply
      add_action( 'template_redirect', 'bbp_new_reply_handler'         );
      

Comments are closed.