generated from alleyinteractive/create-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built changes for v1.0.0 from develop c431df8
- Loading branch information
Showing
392 changed files
with
46,689 additions
and
494 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
# Build files | ||
build | ||
vendor | ||
composer.lock | ||
node_modules | ||
|
||
# Log files | ||
*.log | ||
|
||
# Cache files | ||
.phpcs/*.json | ||
.phpunit.result.cache | ||
|
||
# Ignore temporary OS files | ||
.DS_Store | ||
.DS_Store? | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
.thumbsdb | ||
|
||
# IDE files | ||
*.code-workspace | ||
.idea | ||
.vscode | ||
wp-cli.local.yml | ||
node_modules/ | ||
*.sql | ||
*.tar.gz | ||
*.zip | ||
.phpunit.result.cache | ||
Dockerfile | ||
output.log | ||
.github | ||
tests | ||
bin | ||
composer.lock | ||
.phpcs.xml | ||
phpunit.xml | ||
configure.php | ||
DOCKER_ENV | ||
phpunit.xml | ||
tests | ||
.phpcs | ||
Makefile |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '80db471c88489eb64a8d'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Entry point "plugin" script registration and enqueue. | ||
* | ||
* This file will be copied to the assets output directory | ||
* with Webpack using wp-scripts build. The build command must | ||
* be run before this file will be available. | ||
* | ||
* This file must be included from the build output directory in a project. | ||
* and will be loaded from there. | ||
* | ||
* @package wp-modified-date-control | ||
*/ | ||
|
||
/** | ||
* Register the plugin entry point assets so that they can be enqueued. | ||
*/ | ||
function wp_modified_date_control_register_plugin_scripts(): void { | ||
// Automatically load dependencies and version. | ||
$asset_file = include __DIR__ . '/index.asset.php'; | ||
|
||
// Register the plugin script. | ||
wp_register_script( | ||
'wp-modified-date-control-plugin-js', | ||
plugins_url( 'index.js', __FILE__ ), | ||
$asset_file['dependencies'], | ||
$asset_file['version'], | ||
true | ||
); | ||
wp_set_script_translations( 'wp-modified-date-control-plugin-js', 'wp-modified-date-control' ); | ||
|
||
// Register the plugin style. | ||
wp_register_style( | ||
'wp-modified-date-control-plugin-css', | ||
plugins_url( 'index.css', __FILE__ ), | ||
[], | ||
$asset_file['version'], | ||
); | ||
} | ||
add_action( 'init', 'wp_modified_date_control_register_plugin_scripts' ); | ||
|
||
/** | ||
* Enqueue styles/scripts for the plugin entry point. | ||
*/ | ||
function wp_modified_date_control_enqueue_plugin(): void { | ||
wp_enqueue_script( 'wp-modified-date-control-plugin-js' ); | ||
wp_enqueue_style( 'wp-modified-date-control-plugin-css' ); | ||
} | ||
add_action( 'enqueue_block_assets', 'wp_modified_date_control_enqueue_plugin' ); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.