- determine site ID (for example:
5
) - create a spot where the new website will live (for example:
/www/mywebsite.nl/public
) - install a new WordPress
cd /www/mywebsite.nl/public ; wp core download
- copy theme(s) and plugins
<?php | |
/** | |
* Migrate repositorioes from Bitbucket to GitHub. | |
* | |
* Usage: php run.php | |
* | |
* @package CS\Bitbucket_to_Github | |
* @license MIT License | |
*/ | |
class CS_Bitbucket_to_Github |
<?php | |
/* | |
.... | |
Within plugin EDD Migration Client edd.php | |
*/ | |
/** | |
* You should use your own unique CLASS name, and be sure to replace it | |
* throughout this file. For example, if your product's name is "Awesome Product" |
FS_API_SCOPE="developer" | |
FS_API_DEV_ID=000 | |
FS_API_PUBLIC_KEY="" | |
FS_API_SECRET_KEY="" | |
TICKSY_SECRET_KEY="" |
<?php | |
//opcache_reset(); // Disable local dev MAMP cache | |
/* | |
WP_API_OAuth_Test_client.php | |
Tested with Wordpress 4.7.1 | |
WordPress REST API - OAuth 1.0a Server v.0.3.0 - https://en-gb.wordpress.org/plugins/rest-api-oauth1/ |
<?php | |
// sent an updated nonce to the front-end on each request | |
add_filter( 'rest_post_dispatch', function( WP_REST_Response $response, WP_REST_Server $rest, WP_REST_Request $request) { | |
$response->header('X-WP-Nonce', wp_create_nonce( 'wp_rest' )); | |
return $response; | |
}, PHP_INT_MAX, 3); | |
// wp_create_nonce relies on user-id from global user object, and authentication cookie. | |
// both are INCORRECT after programmatic log-in or log-out. | |
// Really, WordPress? You should do this for us! |
<?php | |
/* | |
* @gist Regex to get youtube video/playlist id with/without time & generate embed code | |
* @license UNLICENSE (http://unlicense.org) | |
*/ | |
$youtube_url = array( | |
"https://youtu.be/yVpbFMhOAwE", | |
"https://www.youtube.com/embed/yVpbFMhOAwE", |
# EditorConfig helps keep your project formatting consistent. | |
# See https://EditorConfig.org | |
# | |
# This is a modified version of the WordPress coding standards. | |
# | |
# Author: Sal Ferrarello (@salcode) | |
# https://salferrarello.com/wordpress-editorconfig/ | |
# | |
# You can download this file directly | |
# to your project from the command-line with |
Install Fake Sendmail (http://glob.com.au/sendmail/). Then configure C:\wamp\sendmail\sendmail.ini: | |
smtp_server=smtp.gmail.com | |
smtp_port=465 | |
[email protected] | |
auth_password=your_password | |
The above will work against a Gmail account. And then configure php.ini: | |
sendmail_path = "C:\wamp\sendmail\sendmail.exe -t" | |
Now, restart Apache, and that is basically all you need to do. |