Inventory_Presser_Admin_Editor_Sidebar::sidebar_plugin_script_enqueue()
sidebar_plugin_script_enqueue
Contents
Description Description
Includes the JavaScript file when editing a vehicle in the dashboard.
Return Return
(void)
Source Source
File: includes/admin/class-admin-editor-sidebar.php
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' ); }
Expand full source code Collapse full source code View on Github