Changeset 10149 for trunk/src/bp-members/bp-members-screens.php
- Timestamp:
- 09/27/2015 05:43:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-screens.php
r9877 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Screens. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 21 20 * Fires right before the loading of the Member profile screen template file. 22 21 * 23 * @since BuddyPress (1.5.0)22 * @since 1.5.0 24 23 */ 25 24 do_action( 'bp_members_screen_display_profile' ); … … 28 27 * Filters the template to load for the Member profile page screen. 29 28 * 30 * @since BuddyPress (1.5.0)29 * @since 1.5.0 31 30 * 32 31 * @param string $template Path to the Member template to load. … … 45 44 * Fires right before the loading of the Member directory index screen template file. 46 45 * 47 * @since BuddyPress (1.5.0)46 * @since 1.5.0 48 47 */ 49 48 do_action( 'bp_members_screen_index' ); … … 52 51 * Filters the template to load for the Member directory page screen. 53 52 * 54 * @since BuddyPress (1.5.0)53 * @since 1.5.0 55 54 * 56 55 * @param string $value Path to the member directory template to load. … … 83 82 * Filters the URL to redirect logged in users to when visiting registration page. 84 83 * 85 * @since BuddyPress (1.5.1)84 * @since 1.5.1 86 85 * 87 86 * @param string $redirect_to URL to redirect user to. … … 103 102 * Fires before the validation of a new signup. 104 103 * 105 * @since BuddyPress (2.0.0)104 * @since 2.0.0 106 105 */ 107 106 do_action( 'bp_signup_pre_validate' ); … … 174 173 * Fires after the validation of a new signup. 175 174 * 176 * @since BuddyPress (1.1.0)175 * @since 1.1.0 177 176 */ 178 177 do_action( 'bp_signup_validate' ); … … 187 186 * Filters the error message in the loop. 188 187 * 189 * @since BuddyPress (1.5.0)188 * @since 1.5.0 190 189 * 191 190 * @param string $value Error message wrapped in html. … … 240 239 * Filters the user meta used for signup. 241 240 * 242 * @since BuddyPress (1.1.0)241 * @since 1.1.0 243 242 * 244 243 * @param array $usermeta Array of user meta to add to signup. … … 263 262 * Fires after the completion of a new signup. 264 263 * 265 * @since BuddyPress (1.1.0)264 * @since 1.1.0 266 265 */ 267 266 do_action( 'bp_complete_signup' ); … … 273 272 * Fires right before the loading of the Member registration screen template file. 274 273 * 275 * @since BuddyPress (1.5.0)274 * @since 1.5.0 276 275 */ 277 276 do_action( 'bp_core_screen_signup' ); … … 280 279 * Filters the template to load for the Member registration page screen. 281 280 * 282 * @since BuddyPress (1.5.0)281 * @since 1.5.0 283 282 * 284 283 * @param string $value Path to the Member registration template to load. … … 315 314 * Filters the URL to redirect logged in users to when visiting activation page. 316 315 * 317 * @since BuddyPress (1.9.0)316 * @since 1.9.0 318 317 * 319 318 * @param string $redirect_to URL to redirect user to. … … 342 341 * Filters the activation signup. 343 342 * 344 * @since BuddyPress (1.1.0)343 * @since 1.1.0 345 344 * 346 345 * @param bool|int $value Value returned by activation. … … 370 369 * Filters the template to load for the Member activation page screen. 371 370 * 372 * @since BuddyPress (1.1.1)371 * @since 1.1.1 373 372 * 374 373 * @param string $value Path to the Member activation template to load. … … 386 385 * member template parts to the_title and the_content areas of a theme. 387 386 * 388 * @since BuddyPress (1.7.0)387 * @since 1.7.0 389 388 */ 390 389 class BP_Members_Theme_Compat { … … 393 392 * Set up the members component theme compatibility. 394 393 * 395 * @since BuddyPress (1.7.0)394 * @since 1.7.0 396 395 */ 397 396 public function __construct() { … … 402 401 * Are we looking at something that needs members theme compatibility? 403 402 * 404 * @since BuddyPress (1.7.0)403 * @since 1.7.0 405 404 */ 406 405 public function is_members() { … … 418 417 * Fires if looking at Members directory when needing theme compat. 419 418 * 420 * @since BuddyPress (1.5.0)419 * @since 1.5.0 421 420 */ 422 421 do_action( 'bp_members_screen_index' ); … … 438 437 * Fires if looking at Members user page when needing theme compat. 439 438 * 440 * @since BuddyPress (1.5.0)439 * @since 1.5.0 441 440 */ 442 441 do_action( 'bp_members_screen_display_profile' ); … … 457 456 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 458 457 * 459 * @since BuddyPress (1.8.0)458 * @since 1.8.0 460 459 * 461 460 * @param array $templates The templates from bp_get_theme_compat_templates(). … … 468 467 * Filters the template hierarchy for theme compat and members directory page. 469 468 * 470 * @since BuddyPress (1.8.0)469 * @since 1.8.0 471 470 * 472 471 * @param array $value Array of template paths to add to hierarchy. … … 486 485 * Update the global $post with directory data. 487 486 * 488 * @since BuddyPress (1.7.0)487 * @since 1.7.0 489 488 */ 490 489 public function directory_dummy_post() { … … 505 504 * Filter the_content with the members index template part. 506 505 * 507 * @since BuddyPress (1.7.0)506 * @since 1.7.0 508 507 */ 509 508 public function directory_content() { … … 519 518 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 520 519 * 521 * @since BuddyPress (1.8.0)520 * @since 1.8.0 522 521 * 523 522 * @param string $templates The templates from … … 533 532 * Filters the template hierarchy for theme compat and member pages. 534 533 * 535 * @since BuddyPress (1.8.0)534 * @since 1.8.0 536 535 * 537 536 * @param array $value Array of template paths to add to hierarchy. … … 555 554 * Update the global $post with the displayed user's data. 556 555 * 557 * @since BuddyPress (1.7.0)556 * @since 1.7.0 558 557 */ 559 558 public function single_dummy_post() { … … 574 573 * Filter the_content with the members' single home template part. 575 574 * 576 * @since BuddyPress (1.7.0)575 * @since 1.7.0 577 576 */ 578 577 public function single_dummy_content() { … … 588 587 * registration template parts to the_title and the_content areas of a theme. 589 588 * 590 * @since BuddyPress (1.7.0)589 * @since 1.7.0 591 590 */ 592 591 class BP_Registration_Theme_Compat { … … 595 594 * Setup the groups component theme compatibility. 596 595 * 597 * @since BuddyPress (1.7.0)596 * @since 1.7.0 598 597 */ 599 598 public function __construct() { … … 604 603 * Are we looking at either the registration or activation pages? 605 604 * 606 * @since BuddyPress (1.7.0)605 * @since 1.7.0 607 606 */ 608 607 public function is_registration() { … … 630 629 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 631 630 * 632 * @since BuddyPress (1.8.0)631 * @since 1.8.0 633 632 * 634 633 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 645 644 * being used. 646 645 * 647 * @since BuddyPress (1.8.0)646 * @since 1.8.0 648 647 * 649 648 * @param array $value Array of template paths to add to hierarchy. … … 663 662 * Update the global $post with dummy data. 664 663 * 665 * @since BuddyPress (1.7.0)664 * @since 1.7.0 666 665 */ 667 666 public function dummy_post() { … … 699 698 * Filter the_content with either the register or activate templates. 700 699 * 701 * @since BuddyPress (1.7.0)700 * @since 1.7.0 702 701 */ 703 702 public function dummy_content() {
Note: See TracChangeset
for help on using the changeset viewer.