- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
<?php | |
// Stolen from: http://www.holisticsystems.co.uk/blog/?p=931 | |
// Modified to work using mysqli | |
$server = 'localhost'; | |
$username = 'root'; | |
$password = 'root'; | |
$database = 'ojs'; | |
$new_charset = 'utf8'; | |
$new_collation = 'utf8_unicode_ci'; |
/* inspired from https://github.com/Yoast/wpseo-woocommerce/blob/trunk/js/src/yoastseo-woo-replacevars.js */ | |
/* global jQuery, YoastSEO, app, globals YoastACFAnalysisConfig */ | |
var pluginName = "additionalVariablePlugin"; | |
var ReplaceVar = window.YoastReplaceVarPlugin && window.YoastReplaceVarPlugin.ReplaceVar; | |
var placeholders = {}; | |
var modifiableFields = [ | |
"content", | |
"title", |
const { mix } = require('laravel-mix') | |
const path = require('path') | |
/* | |
|-------------------------------------------------------------------------- | |
| Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| This file defines the building steps of the application. Here's where the | |
| client-side technologies are configured according to the needs. Steps such |
##From PHP 5.6 => PHP 7.1 | |
Default PHP 5.6 is set on your system and you need to switch to PHP 7.1. Run the following commands to switch for Apache and command line. | |
#Apache:- | |
$ sudo a2dismod php5.6 | |
$ sudo a2enmod php7.1 | |
$ sudo service apache2 restart |
<?php | |
/** | |
* Controller file for Lotus Drupal 8 module. | |
* Place this file in src/Controller folder inside the lotus module folder | |
**/ | |
namespace Drupal\lotus\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
class HelloController extends ControllerBase { |
if ( ! function_exists( 'prefix_fonts_url' ) ) : | |
/** | |
* Register Google fonts. | |
* | |
* @return string Google fonts URL for the theme. | |
*/ | |
function prefix_fonts_url() { | |
$fonts_url = ''; | |
$fonts = array(); | |
$subsets = ''; |
PHP handling on apache is done via modules of one sort or another, and running multiple version is problematic on a single instance. The solution is to run two instances of apache on the same machine. This allows one instance to run PHP 7 (the default on 16.04), and another can run PHP 5. Since normal http/https is on ports 80 and 443, the second instance will run on ports 81 and 444. Since it is running on the same machine, all file system and database access is the exact same.
All the commands herein have to be run as root, or with sudo
prefixed to the command.
-
Read /usr/share/doc/apache2/README.multiple-instances
-
Run
sh ./setup-instance php5
from/usr/share/doc/apache2/examples
, wherephp5
is the suffix for the second site; all commands for the second site will have that suffix. This will keep all of the same configuration for all sites on the new instance, including SSL certif
WoCommerce Subscriptions processes automatic renewal payments via the following flow:
- its scheduling system, Action Scheduler, will run every minute and find any
woocommerce_scheduled_subscription_payment
actions scheduled to run now or within the last minute - if there are
woocommerce_scheduled_subscription_payment
actions scheduled for anytime before now, Action Scheduler will grab a batch of those actions and begin processing them (which just means triggeringdo_action( 'scheduled_subscription_payment', $subscription_id )
for any 3rd party code to handle) - Subscriptions attaches two important functions as callbacks on the
'woocommerce_scheduled_subscription_payment'
hook to process renewal for that subscription when it is called: WC_Subscriptions_Manager::prepare_renewal()
, which is responsible for