Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheel
WordPress install is a custom install
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
Local by FlyWheel
WordPress install is a custom install$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
<?php | |
add_action( 'gravityview/edit_entry/after_update', 'gravityview_redirect_after_update', 10, 2 ); | |
function gravityview_redirect_after_update( $form, $entry_id ) { | |
// Get the current View ID | |
$view_id = GravityView_View::getInstance()->getViewId(); | |
if ( $view_id == 105 ) {?> | |
<script> | |
jQuery(document).ready( function() { | |
window.location.replace( "http://localhost/gravity/" ); | |
}); |
:root { | |
--app-width: 1000px; | |
--some-calculation: calc(var(--app-width) + 1); | |
} |
<?php | |
/** | |
* Remove user list endpoint from rest api | |
*/ | |
add_filter('rest_endpoints', function($aryEndpoints){ | |
if(isset($aryEndpoints['/wp/v2/users'])){ | |
unset($aryEndpoints['/wp/v2/users']); | |
} | |
if(isset($aryEndpoints['/wp/v2/users/(?P<id>[\d]+)'])){ | |
unset($aryEndpoints['/wp/v2/users/(?P<id>[\d]+)']); |
class ParentComponent extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
data : [ | |
{id : 1, date : "2014-04-18", total : 121.0, status : "Shipped", name : "A", points: 5, percent : 50}, | |
{id : 2, date : "2014-04-21", total : 121.0, status : "Not Shipped", name : "B", points: 10, percent: 60}, | |
{id : 3, date : "2014-08-09", total : 121.0, status : "Not Shipped", name : "C", points: 15, percent: 70}, | |
{id : 4, date : "2014-04-24", total : 121.0, status : "Shipped", name : "D", points: 20, percent : 80}, |
<?php | |
class Container | |
{ | |
/** @var Closure[] */ | |
private $factories = []; | |
/** @var array */ | |
private $components = []; |
<?php | |
/** | |
* Add order again button in my orders actions. | |
* | |
* @param array $actions | |
* @param WC_Order $order | |
* @return array | |
*/ | |
function cs_add_order_again_to_my_orders_actions( $actions, $order ) { | |
if ( $order->has_status( 'completed' ) ) { |
First, Create a folder inside of lib
called seeds
Put your CSV file example.csv
into the lib/seeds
folder. In the example below, the file is called real_estate_transactions.csv
Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.