{"id":31619,"date":"2014-09-11T23:30:31","date_gmt":"2014-09-11T23:30:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-deployment-hook\/"},"modified":"2014-09-19T20:05:17","modified_gmt":"2014-09-19T20:05:17","slug":"post-deployment-hook","status":"closed","type":"plugin","link":"https:\/\/es.wordpress.org\/plugins\/post-deployment-hook\/","author":8299683,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"4.0.38","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Post Deployment Hook","header_author":"Jared Cobb <wordpress@jaredcobb.com>","header_description":"","assets_banners_color":"0b0a0a","last_updated":"2014-09-19 20:05:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/jaredcobb.com\/wordpress-post-deployment-hook\/","header_author_uri":"http:\/\/jaredcobb.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1196,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"993428","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"993428","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"993428","resolution":"2","location":"assets"}},"screenshots":{"1":"The settings page will allow you to set a password and create a webhook url. You may also automatically purge the cache (WP Super Cache or W3 Total Cache).","2":"You can define your own function (I recommend placing it into <code>functions.php<\/code>) and run any code you wish once the token url is hit."}},"plugin_section":[],"plugin_tags":[3776,16271,2452,15439],"plugin_category":[],"plugin_contributors":[92649],"plugin_business_model":[],"class_list":["post-31619","plugin","type-plugin","status-closed","hentry","plugin_tags-build","plugin_tags-deployment","plugin_tags-hook","plugin_tags-webhook","plugin_contributors-jaredcobb","plugin_committers-jaredcobb"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-deployment-hook_0b0a0a.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-deployment-hook\/assets\/screenshot-1.png?rev=993428","caption":"The settings page will allow you to set a password and create a webhook url. You may also automatically purge the cache (WP Super Cache or W3 Total Cache)."},{"src":"https:\/\/ps.w.org\/post-deployment-hook\/assets\/screenshot-2.png?rev=993428","caption":"You can define your own function (I recommend placing it into <code>functions.php<\/code>) and run any code you wish once the token url is hit."}],"raw_content":"<!--section=description-->\n<p>If you have a build \/ deployment process for your site, it's often useful to have a way to execute code in your theme or plugins after you commit or deploy your code changes.<\/p>\n\n<p>GitHub, Bitbucket, and Beanstalk are common tools that allow you to configure a webhook URL that gets called as soon as you make a check-in or deployment.<\/p>\n\n<p>Common uses are<\/p>\n\n<ul>\n<li>Purge the cache after you deploy new theme code (WP Super Cache or W3 Total Cache)<\/li>\n<li>After you build your JavaScript\/CSS, trigger a backup of the live site<\/li>\n<li>Trigger any WordPress hook<\/li>\n<li>Run any other plugin or theme code you wish!<\/li>\n<\/ul>\n\n<p><strong>More information on how to use this plugin (including how to setup GitHub, Bitbucket, and Beanstalk) can be found at <a href=\"http:\/\/jaredcobb.com\/post-deployment-hook\">http:\/\/jaredcobb.com\/post-deployment-hook<\/a><\/strong><\/p>\n\n<p>The plugin is also <a href=\"https:\/\/github.com\/jaredcobb\/post-deployment-hook\">hosted on GitHub<\/a>. Pull requests are welcome!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Enter a passphrase in the Settings &gt; Post Deployment Hook options to secure your webhook<\/li>\n<li>Use the generated URL (including it's token) as your post-deployment \/ post-commit hook url<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Will this slow down my site?<\/dt>\n<dd><p>Nope. While the plugin does execute on each page request, it simply checks if the request is a webhook call first. If not, it just exits.<\/p><\/dd>\n<dt>Who would use this plugin?<\/dt>\n<dd><p>Probably developers. But anyone with some knowledge of WordPress could use this plugin to run jobs in WordPress by hitting the URL this plugin provides.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Updated README.txt and added screenshots<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial commit<\/li>\n<\/ul>","raw_excerpt":"Creates a webhook listener in WordPress, useful for integrating a post-deployment hook from your build \/ deployment process","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31619"}],"author":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jaredcobb"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31619"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31619"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31619"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31619"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31619"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}