/** * Add the javascript files when editing a "view" post type. * */ function add_js() { global $post; if ($post->post_type == 'view') { wpv_filter_add_js(); add_views_layout_js(); } }
/** * Add the javascript files when editing a "view" post type. * */ function add_js() { // TODO DEPRECATED this is not used anymore global $post; if ($post->post_type == 'view') { wpv_filter_add_js(); add_views_layout_js(); } }