BP_Admin_Types::__construct()

The main BuddyPress Types admin loader.


Source Source

File: bp-core/classes/class-bp-admin-types.php

	public function __construct() {
		$this->setup_globals();

		if ( $this->taxonomy && $this->screen_id ) {
			$this->includes();
			$this->setup_hooks();

			if ( isset( $_POST['action'] ) || isset( $_GET['action'] ) ) {
				if ( isset( $_GET['action'] ) ) {
					$action = wp_unslash( $_GET['action'] );
				} else {
					$action = wp_unslash( $_POST['action'] );
				}

				$this->handle_action( $action );
			}
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.