You can open the Marketplace tab and search for the current LAMP stack.
We will use the LAMP stack on a Basic plan for 5$/month.
php -v
# if php 8 then
You can open the Marketplace tab and search for the current LAMP stack.
We will use the LAMP stack on a Basic plan for 5$/month.
php -v
# if php 8 then
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 installfunction pn_get_attachment_id_from_url( $attachment_url = '' ) { | |
global $wpdb; | |
$attachment_id = false; | |
// If there is no url, return. | |
if ( '' == $attachment_url ) | |
return; | |
// Get the upload directory paths |
Using the REST API to upload a file to WordPress is
quite simple. All you need is to send the file in a
POST
-Request to the wp/v2/media
route.
There are two ways of sending a file. The first method simply sends the file in the body of the request. The following PHP script shows the basic principle:
Twitter ID, Screen name, Followers | |
12,jack,6526006 | |
13,biz,2608289 | |
20,ev,1679155 | |
57,SarahM,17448 | |
59,Tim535353,9340 | |
76,marciadorsey,19501 | |
224,davepell,57523 | |
291,goldman,916937 | |
295,joshk,149086 |
vanessasmoney.com | |
purechristiangraphicdesign.com | |
crosson.com.br | |
driveinteractivepdx.com | |
nkforsterguitars.com | |
wildsnow.com | |
yourmortgage.co.uk | |
pupamag.com | |
alvissconsulting.com | |
serviceproeastidaho.com |
/** | |
* MIXIN: Responsive Media Queries. | |
* | |
* Creates responsive media queries for eight different screen sizes. | |
* These are based on min-width which means if x is the size then your | |
* CSS will affect any device with screen width x and above. | |
* | |
* USAGE: | |
* @include r(240) { } | |
* @include r(320) { } |
Debug Modern JavaScript with VSCode. Part of VSCode Course.
npm init -y
title | category | date |
---|---|---|
Delete a Git branch both locally and remotely [Shell aliases + functions] |
Shell, Git |
2018-09-24 |
Deleting a git branch locally is pretty easy, just do a git branch -D branch_name
and you're done. But when you have pushed that branch to remote, it becomes a bit more complex. You can't just delete the local branch and do a git push
. Instead you have to do a git push origin --delete branch_name
to delete it from the remote.
# WP Plugin: Install & Acticate | |
# Usage: wpp plugin-slug | |
alias wpp="wp plugin install $* --activate" | |
# WP Theme: Install | |
# Usage: wpt plugin-slug | |
alias wpt="wp theme install $* --activate" | |
# WP Theme: Activate | |
# Usage: wpta plugin-slug |