This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// License: GPLv2+ | |
var el = wp.element.createElement, | |
registerBlockType = wp.blocks.registerBlockType, | |
ServerSideRender = wp.components.ServerSideRender, | |
TextControl = wp.components.TextControl, | |
InspectorControls = wp.editor.InspectorControls; | |
/* | |
* Here's where we register the block in JavaScript. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// array - repo names and local filesystem path and branch | |
$repos = array( | |
'plugin-slug' => array ( | |
'branch' => 'master', | |
'localpath' => '/var/www/example.com/htdocs/wp-content/plugins/plugin-slug' | |
), | |
); | |
hook_write_log( 'Hello at ' . date( 'D M j G:i:s T Y' ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// array - repo names and local filesystem path and branch | |
$repos = array( | |
'bad-plugin' => array ( | |
'branch' => 'master', | |
'localpath' => '/var/www/example.com/htdocs/wp-content/plugins/bad-plugin' | |
) | |
); | |
rt_write_log("Hello at " . date("D M j G:i:s T Y") ); |