This file contains hidden or 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 | |
| // number of users we want to show per page | |
| $number = 10; | |
| // to pinpoint the current pagination number | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| // count the number of users that should be passed over in the pages (offset) – this will take effect at the second page onwards. | |
| $offset = ($paged - 1) * $number; |
This file contains hidden or 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 Valet\Drivers\Custom; | |
| class BedrockMultisiteValetDriver extends \Valet\Drivers\Specific\BedrockValetDriver | |
| { | |
| /** | |
| * Determine if the incoming request is for a static file. | |
| * | |
| * @return string|false |
This file contains hidden or 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 | |
| //increase max execution time of this script to 150 min: | |
| ini_set('max_execution_time', 9000); | |
| //increase Allowed Memory Size of this script: | |
| ini_set('memory_limit','960M'); | |
| // Copies woocommerce orders and users over from source to target. | |
| // I use this on my local machine - loading both db's up there side by side | |
| // could easily adjust the connect strings to connect elsewhere if needed. |
This file contains hidden or 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
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
This file contains hidden or 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
| {{-- | |
| Template Name: Events | |
| --}} | |
| @extends('layouts.app') | |
| @section('content') | |
| <div id="tribe-events-pg-template"> | |
| <?php tribe_events_before_html(); ?> | |
| <?php tribe_get_view(); ?> |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| #styles | |
| VP_NONE='\033[00m' | |
| VP_RED='\033[01;31m' | |
| VP_GREEN='\033[01;32m' | |
| VP_YELLOW='\033[01;33m' | |
| VP_PURPLE='\033[01;35m' | |
| VP_CYAN='\033[01;36m' | |
| VP_WHITE='\033[01;37m' |
This file contains hidden or 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 | |
| /** | |
| * @link | |
| * @since 1.0.0 | |
| * @package TODO | |
| * | |
| * @wordpress-plugin | |
| * Plugin Name: Use MailHog | |
| * Description: Configure WordPress on Valet to use MailHog | |
| * Version: 1.0.0 |
This file contains hidden or 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: Woocommerce migrate orders | |
| Author: Anthony Brown (codeable) | |
| Version: 1.0 | |
| */ | |
| if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
This file contains hidden or 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
| define( 'WP_CACHE', true ); | |
| define( 'WPCACHEHOME', $webroot_dir . '/app/plugins/wp-super-cache/'); |