BP_Admin::deregister_wp_job_manager_shared_assets()

DeRegisters jquery-ui-style from the WP Job Manager plugin in WP admin /wp-admin/admin.php?page=bp-profile-setup page.

Description

Source

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

	public function deregister_wp_job_manager_shared_assets() {

		global $pagenow, $current_screen;

		if ( is_plugin_active( 'wp-job-manager/wp-job-manager.php' ) && isset( $_GET['page'] ) && 'bp-profile-setup' === $_GET['page'] &&  'admin.php' === $pagenow && isset( $current_screen->id ) && 'buddyboss_page_bp-profile-setup' === $current_screen->id ) {

			wp_dequeue_style('jquery-ui-style');
			wp_deregister_style('jquery-ui-style');

		}

	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.