Skip to:
Content

bbPress.org

Changeset 7382


Ignore:
Timestamp:
12/19/2025 08:02:00 PM (7 months ago)
Author:
johnjamesjacoby
Message:

General - Administration: add "loaded" hooks to admin classes.

This change allows third-party plugins access to various class objects after they are loaded, specifically their $this references in their related setup_actions() methods.

In trunk, for 2.7.

Fixes #3660.

Location:
trunk/src/includes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/classes/class-bbp-converter.php

    r7380 r7382  
    152152                // Attach to the admin ajax request to process cycles
    153153                add_action( 'wp_ajax_bbp_converter_process', array( $this, 'process_callback' ) );
     154
     155                /** Dependencies ******************************************************/
     156
     157                // Allow plugins to modify these actions
     158                do_action_ref_array( 'bbp_admin_converter_loaded', array( &$this ) );
    154159        }
    155160
  • trunk/src/includes/admin/forums.php

    r7380 r7382  
    7474                add_action( 'load-post.php',     array( $this, 'new_help'  ) );
    7575                add_action( 'load-post-new.php', array( $this, 'new_help'  ) );
     76
     77                /** Dependencies ******************************************************/
     78
     79                // Allow plugins to modify these actions
     80                do_action_ref_array( 'bbp_admin_forums_loaded', array( &$this ) );
    7681        }
    7782
  • trunk/src/includes/admin/replies.php

    r7380 r7382  
    8888                add_action( 'load-post.php',     array( $this, 'new_help'  ) );
    8989                add_action( 'load-post-new.php', array( $this, 'new_help'  ) );
     90
     91                /** Dependencies ******************************************************/
     92
     93                // Allow plugins to modify these actions
     94                do_action_ref_array( 'bbp_admin_replies_loaded', array( &$this ) );
    9095        }
    9196
  • trunk/src/includes/admin/topics.php

    r7380 r7382  
    9292                add_action( 'load-post.php',     array( $this, 'new_help'  ) );
    9393                add_action( 'load-post-new.php', array( $this, 'new_help'  ) );
     94
     95                /** Dependencies ******************************************************/
     96
     97                // Allow plugins to modify these actions
     98                do_action_ref_array( 'bbp_admin_topics_loaded', array( &$this ) );
    9499        }
    95100
  • trunk/src/includes/admin/users.php

    r7380 r7382  
    6666                add_action( 'load-users.php',   array( $this, 'user_role_bulk_change' ), 10, 1 );
    6767                add_action( 'user_row_actions', array( $this, 'user_row_actions'      ), 10, 2 );
     68
     69                /** Dependencies ******************************************************/
     70
     71                // Allow plugins to modify these actions
     72                do_action_ref_array( 'bbp_admin_users_loaded', array( &$this ) );
    6873        }
    6974
  • trunk/src/includes/extend/akismet.php

    r7380 r7382  
    8787                        add_action( 'add_meta_boxes', array( $this, 'add_metaboxes' ) );
    8888                }
     89
     90                /** Dependencies ******************************************************/
     91
     92                // Allow plugins to modify these actions
     93                do_action_ref_array( 'bbp_extend_akismet_loaded', array( &$this ) );
    8994        }
    9095
  • trunk/src/includes/extend/buddypress/loader.php

    r7380 r7382  
    155155                // Setup the components
    156156                add_action( 'bp_init', array( $this, 'setup_components' ), 7 );
     157
     158                /** Dependencies ******************************************************/
     159
     160                // Allow plugins to modify these actions
     161                do_action_ref_array( 'bbp_extend_buddypress_loaded', array( &$this ) );
    157162
    158163                parent::setup_actions();
Note: See TracChangeset for help on using the changeset viewer.