Inventory_Presser_Admin_Editor_Sidebar::sidebar_plugin_script_enqueue()

Includes the JavaScript file when editing a vehicle in the dashboard.

On This Page


Return Return

(void)


Top ↑

Source Source

File: includes/admin/class-admin-editor-sidebar.php

	public function sidebar_plugin_script_enqueue() {
		// Are we editing a vehicle?
		global $post;
		if ( empty( $post->post_type ) || INVP::POST_TYPE !== $post->post_type ) {
			return;
		}
		wp_enqueue_script( 'invp-plugin-sidebar' );
	}