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 | |
/* | |
* This is the output from a \WP_Site | |
* WP_Site objects are passed during multisite setup in various hooks including 'wp_insert_site' and 'wp_initialize_site'. | |
* In a plugin you can use these action hooks to "do stuff when new multisite site is created". | |
* In Saber Commerce plugin we use 'wp_insert_site' and then take the blog_id and utilize it to setup new directories and database tables for the new site. | |
*/ | |
C:\Users\Casey\Plugins\sacomA\saber-commerce.php:374: |
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 | |
// Enqueue Theme CSS. | |
add_action( 'wp_enqueue_scripts', 'reflex_css' ); | |
function reflex_css() { | |
wp_enqueue_style( | |
'reflex-main-style', | |
get_stylesheet_directory_uri() . '/style.css', |
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
/* | |
Theme Name: Reflex | |
Description: Reflex is a React-powered theme for WordPress. | |
Author: Casey Milne | |
Author URI: https://caseymilne.com | |
Template: reflex | |
Version: 1.0.0 | |
License: GNU General Public License v3 or later | |
License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
Text Domain: reflex |
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
"scripts": { | |
"build": "wp-scripts build", | |
"check-engines": "wp-scripts check-engines", | |
"check-licenses": "wp-scripts check-licenses", | |
"lint:css": "wp-scripts lint-style", | |
"lint:js": "wp-scripts lint-js", | |
"lint:pkg-json": "wp-scripts lint-pkg-json", | |
"start": "wp-scripts start", | |
"test:e2e": "wp-scripts test-e2e", | |
"test:unit": "wp-scripts test-unit-js" |
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 | |
// Enqueue Theme JS w React Dependency | |
add_action( 'wp_enqueue_scripts', 'reflex_js' ); | |
function reflex_js() { | |
wp_enqueue_script( | |
'reflex-main-script', | |
get_stylesheet_directory_uri() . '/build/index.js', | |
['wp-element'], |