bp_template_content

  • do_action( 'bp_template_content' )

    Source Reference:

    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/groups/single/plugins.php :: Trac Source Line: 27
      						<?php do_action( 'bp_group_plugin_options_nav' ) ?>
      					</ul>
      				</div>
      			</div><!-- #item-nav -->
      
      			<div id="item-body">
      
      				<?php do_action( 'bp_before_group_body' ) ?>
      
      				<?php do_action( 'bp_template_content' ) ?>
      
      				<?php do_action( 'bp_after_group_body' ) ?>
      			</div><!-- #item-body -->
      
      			<?php do_action( 'bp_after_group_plugin_template' ) ?>
      
      			<?php endwhile; endif; ?>
      
      		</div><!-- .padder -->
      	</div><!-- #content -->
      
    • 						<?php bp_get_options_nav(); ?>
      
      						<?php do_action( 'bp_member_plugin_options_nav' ); ?>
      
      					</ul>
      				</div><!-- .item-list-tabs -->
      
      				<h3><?php _e( 'General Settings', 'buddypress' ); ?></h3>
      
      				<?php do_action( 'bp_template_content' ) ?>
      
      				<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
      
      					<label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
      					<input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" /> &nbsp;<a href="<?php echo site_url( add_query_arg( array( 'action' => 'lostpassword' ), 'wp-login.php' ), 'login' ); ?>" title="<?php _e( 'Password Lost and Found', 'buddypress' ); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a>
      
      					<label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>
      					<input type="text" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" />
      
      					<label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/members/single/plugins.php :: Trac Source Line: 57
      						<?php bp_get_options_nav(); ?>
      
      						<?php do_action( 'bp_member_plugin_options_nav' ); ?>
      
      					</ul>
      				</div><!-- .item-list-tabs -->
      
      				<h3><?php do_action( 'bp_template_title' ); ?></h3>
      
      				<?php do_action( 'bp_template_content' ); ?>
      
      				<?php do_action( 'bp_after_member_body' ); ?>
      
      			</div><!-- #item-body -->
      
      			<?php do_action( 'bp_after_member_plugin_template' ); ?>
      
      		</div><!-- .padder -->
      	</div><!-- #content -->
      

Hook: add_action: bp_template_content instances (2)

  • add_action( 'bp_template_content', array( &$this, 'edit_screen' ) )
    $function_to_add: array( &$this
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-classes.php :: Trac Source Line: 1269
      				// Check whether the user is saving changes
      				$this->edit_screen_save();
      
      				add_action( 'groups_custom_edit_steps', array( &$this, 'edit_screen' ) );
      
      				if ( '' != locate_template( array( 'groups/single/home.php' ), false ) ) {
      					bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      				} else {
      					add_action( 'bp_template_content_header', create_function( '', 'echo "<ul class="content-header-nav">"; bp_group_admin_tabs(); echo "</ul>";' ) );
      					add_action( 'bp_template_content', array( &$this, 'edit_screen' ) );
      					bp_core_load_template( apply_filters( 'bp_core_template_plugin', '/groups/single/plugins' ) );
      				}
      			}
      		}
      	}
      
      	function _display_hook() {
      		add_action( 'bp_template_content', array( &$this, 'display' ) );
      		bp_core_load_template( apply_filters( 'bp_core_template_plugin', $this->template_file ) );
      	}
      

Hook: add_action: bp_template_content instances (2)

  • add_action( 'bp_template_content', array( &$this, 'display' ) )
    $function_to_add: array( &$this
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-classes.php :: Trac Source Line: 1277
      					add_action( 'bp_template_content_header', create_function( '', 'echo "<ul class="content-header-nav">"; bp_group_admin_tabs(); echo "</ul>";' ) );
      					add_action( 'bp_template_content', array( &$this, 'edit_screen' ) );
      					bp_core_load_template( apply_filters( 'bp_core_template_plugin', '/groups/single/plugins' ) );
      				}
      			}
      		}
      	}
      
      	function _display_hook() {
      		add_action( 'bp_template_content', array( &$this, 'display' ) );
      		bp_core_load_template( apply_filters( 'bp_core_template_plugin', $this->template_file ) );
      	}
      }
      
      function bp_register_group_extension( $group_extension_class ) {
      	global $bp;
      
      	if ( !class_exists( $group_extension_class ) )
      		return false;
      

Comments are closed.