{"id":26101,"date":"2014-01-23T08:28:26","date_gmt":"2014-01-23T08:28:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-asset-manager\/"},"modified":"2014-04-15T22:24:18","modified_gmt":"2014-04-15T22:24:18","slug":"wp-asset-manager","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-asset-manager\/","author":13227187,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"3.7.41","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"WP Asset Manager","header_author":"John Burns","header_description":"","assets_banners_color":"f7f7f7","last_updated":"2014-04-15 22:24:18","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.twitter.com\/WPAssetManager","header_author_uri":"https:\/\/www.twitter.com\/WPAssetManager","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":1658,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"843637","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[247,2391,2864,794,2003],"plugin_category":[45,52,54],"plugin_contributors":[96438],"plugin_business_model":[],"class_list":["post-26101","plugin","type-plugin","status-closed","hentry","plugin_tags-performance","plugin_tags-plugins","plugin_tags-scripts","plugin_tags-speed","plugin_tags-styles","plugin_category-ecommerce","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-johnburns87","plugin_committers-johnburns87"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-asset-manager_f7f7f7.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A wordpress plugin that deactivates individual or all wp plugin styles and scripts per page to decrease load time. Please leave a review or suggested improvements and spread the word!<\/p>\n\n<h4>Common uses<\/h4>\n\n<ul>\n<li>Contact Form 7 - CF7 will load its stylesheet and script into everypage, this plugin will restrict it to load into pages you need it for.<\/li>\n<li>Prevent jQuery loading into every page.<\/li>\n<li>Add\/remove custom Stylesheets per page.<\/li>\n<li>Add\/remove custom JS per page.<\/li>\n<\/ul>\n\n<h4>Setup<\/h4>\n\n<ul>\n<li>Add folder to wp-content\/plugins\/ directory<\/li>\n<li>Login to wp-admin<\/li>\n<li>Go to plugins<\/li>\n<li>Activate plugin<\/li>\n<li>Put the following code into your themes header and footer.<\/li>\n<li>All plugin scripts and stylesheets will be disabled by default<\/li>\n<li>When editing a page, a new widget will appear below the MCE editor where you can enable \/ disable scripts.<\/li>\n<\/ul>\n\n<h4>Code<\/h4>\n\n<p>Add the following code to your themes header and footer<\/p>\n\n<p>header.php<\/p>\n\n<pre><code>&lt;?php\nwp_reset_query();\nglobal $post;\n$styles_query = get_post_meta( $post-&gt;ID, '_active_styles', true );\n$styles_array = unserialize($styles_query);\n?&gt;\n\n&lt;?php if (!empty($styles_array[0])) { foreach($styles_array as $style): ?&gt;\n&lt;link rel=\"stylesheet\" href=\"&lt;?php echo $style; ?&gt;\"&gt;\n&lt;?php endforeach; } ?&gt;\n<\/code><\/pre>\n\n<p>footer.php<\/p>\n\n<pre><code>&lt;?php\nwp_reset_query();\nglobal $post;\n$scripts_query = get_post_meta( $post-&gt;ID, '_active_scripts', true );\n$scripts_array = unserialize($scripts_query);\n?&gt;\n\n&lt;?php if (!empty($scripts_array[0])) { foreach($scripts_array as $script): ?&gt;\n&lt;script src=\"&lt;?php echo $script; ?&gt;\"&gt;&lt;\/script&gt;\n&lt;?php endforeach; } ?&gt;\n<\/code><\/pre>\n\n<h4>Live Examples<\/h4>\n\n<ul>\n<li>www.thetomorrowlab.com<\/li>\n<li>www.johnburns87.com<\/li>\n<\/ul>\n\n<h4>Future Releases<\/h4>\n\n<ul>\n<li>Ability to assign custom styles and scripts to custom post types.<\/li>\n<li>Automatically save active themes stylesheets and scripts.<\/li>\n<\/ul>\n\n<h4>Useful Links<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/www.twitter.com\/WPAssetManager\">Support<\/a><\/li>\n<li><a href=\"https:\/\/www.twitter.com\/johnburns87\">Author<\/a><\/li>\n<\/ul>\n\n<h3>Arbitrary section<\/h3>\n\n<h3>A brief Markdown Example<\/h3>\n\n<p>Add the following code to your themes header and footer<\/p>\n\n<p>header.php<\/p>\n\n<pre><code>&lt;?php\nwp_reset_query();\nglobal $post;\n$styles_query = get_post_meta( $post-&gt;ID, '_active_styles', true );\n$styles_array = unserialize($styles_query);\n?&gt;\n\n&lt;?php if (!empty($styles_array[0])) { foreach($styles_array as $style): ?&gt;\n&lt;link rel=\"stylesheet\" href=\"&lt;?php echo $style; ?&gt;\"&gt;\n&lt;?php endforeach; } ?&gt;\n<\/code><\/pre>\n\n<p>footer.php<\/p>\n\n<pre><code>&lt;?php\nwp_reset_query();\nglobal $post;\n$scripts_query = get_post_meta( $post-&gt;ID, '_active_scripts', true );\n$scripts_array = unserialize($scripts_query);\n?&gt;\n\n&lt;?php if (!empty($scripts_array[0])) { foreach($scripts_array as $script): ?&gt;\n&lt;script src=\"&lt;?php echo $script; ?&gt;\"&gt;&lt;\/script&gt;\n&lt;?php endforeach; } ?&gt;\n<\/code><\/pre>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>first release<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>fixed bugs<\/li>\n<li>added ability to delete custom stylesheets and scripts<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Updated brand icons<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Updated admin area<\/li>\n<li>Added twitter handlers<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Removed wp jquery from wp_head and wp_footer<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Cleaned up code<\/li>\n<li>Added more \/ updated info in README<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Updated README<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Added drag and drop to reorder styles and scripts<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Fixed reorder bugs<\/li>\n<li>Added validation styling<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Fixed multiple activate issue.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Fixed array bug<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fixed multiple activate issue.<\/li>\n<\/ul>","raw_excerpt":"A wordpress plugin that deactivates individual or all wp plugin styles and scripts per page to decrease load time.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26101"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/johnburns87"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26101"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26101"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26101"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26101"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26101"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}