Changeset 13471 for trunk/src/bp-core/deprecated/12.0.php
- Timestamp:
- 05/07/2023 11:36:50 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/deprecated/12.0.php
r13468 r13471 626 626 do_action_deprecated( 'bp_blogs_blog_tabs', array(), '12.0.0' ); 627 627 } 628 629 /** 630 * Dedicated filter to inform about BP components directory page states. 631 * 632 * @since 10.0.0 633 * @deprecated 12.0.0 634 * 635 * @param string[] $post_states An array of post display states. 636 * @param WP_Post $post The current post object. 637 */ 638 function bp_admin_display_directory_states( $post_states = array(), $post = null ) { 639 $states = array(); 640 641 /** 642 * Filter here to add BP Directory pages. 643 * 644 * Used internaly by BP_Component->admin_directory_states(). Please use the dynamic 645 * filter in BP_Component->admin_directory_states() to edit the directory state 646 * according to the component's ID. 647 * 648 * @since 10.0.0 649 * @deprecated 12.0.0 650 * 651 * @param array $states An empty array. 652 * @param WP_Post $post The current post object. 653 */ 654 $directory_page_states = apply_filters_deprecated( 'bp_admin_display_directory_states', array( $states, $post ), '12.0.0' ); 655 656 if ( $directory_page_states ) { 657 $post_states = array_merge( $post_states, $directory_page_states ); 658 } 659 660 return $post_states; 661 }
Note: See TracChangeset
for help on using the changeset viewer.