svg-sprite --si --stack icons/*.svg
This file contains 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 | |
/* | |
Plugin Name: My Cronjobs | |
*/ | |
defined('ABSPATH') or die; | |
/** | |
* Add Cron when the theme is activated | |
*/ |
This file contains 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 | |
class MyConfig extends Config | |
{ | |
public function __construct() | |
{ | |
$faker = Faker\Factory::create('en_GB'); | |
$this->post_type = 'post'; | |
$this->post_title = $faker->name(); |
This file contains 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 | |
define('DISALLOW_FILE_EDIT', true); | |
define('WP_DEBUG', true); | |
define('WP_AUTO_UPDATE_CORE', false); | |
define('WP_POST_REVISIONS', false ); | |
if ( WP_DEBUG ) { | |
define( 'WP_DEBUG_LOG', true ); //Log errors in a file | |
define( 'WP_DEBUG_DISPLAY', false ); //blocks message display on the website | |
define('SAVEQUERIES', true); //Save MySql queries in the global var $wpdb->queries |
This file contains 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 | |
/* | |
* Will minify HTML | |
*/ | |
ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); | |
?> |
NewerOlder