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 | |
//based on Wordpress Multiple Insert https://github.com/mirzazeyrek/wordpress-multiple-insert | |
function wp_insert_update_rows($row_arrays = array(), $wp_table_name) { | |
global $wpdb; | |
$wp_table_name = esc_sql($wp_table_name); | |
$update = ""; | |
$query = ""; | |
$query_columns = ""; | |
$query. = "INSERT INTO {$wp_table_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 | |
/* | |
Valet driver for Wordpress Multisite | |
Usage: Drop this file into your ~/.valet/Drivers/ directory | |
*/ | |
class WordPressMultisiteValetDriver extends WordPressValetDriver | |
{ |
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 | |
/** | |
* Template for displaying bootstrap 4 post pagination. | |
* | |
* @package WordPress | |
* @subpackage Bootstrap | |
* @author Milan Arandjelovic | |
*/ | |
if ( ! function_exists( 'bootstrap_pagination' ) ) { |
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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class KeyGenerateCommand extends Command | |
{ | |
/** |
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 | |
/** | |
* Create a Symfony response for the given exception. | |
* | |
* @param \Exception $e | |
* @return mixed | |
*/ | |
protected function convertExceptionToResponse(Exception $e) | |
{ | |
if (config('app.debug')) { |