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
define( 'WP_HTTP_BLOCK_EXTERNAL', TRUE ); | |
define( 'WP_ACCESSIBLE_HOSTS', 'example.com, domain.com' ); |
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 | |
if ( ! function_exists( 'wpcfu_output_file_upload_form' ) ) { | |
/** | |
* Output the form. | |
* | |
* @param array $atts User defined attributes in shortcode tag | |
*/ | |
function wpcfu_output_file_upload_form( $atts ) { |
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
# This is a workflow to compile and deploy to WPEngine Production | |
name: PROD Deploy to WPEngine | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the release-1 branch | |
push: | |
branches: [ main ] |
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
npm install -g https://github.com/observing/thor |
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
// https://github.com/covenanttechnologysolutions/connectwise-rest/issues/37#issuecomment-963586048 | |
function getAllCompanyContacts = (id) => { | |
return paginate( | |
// reference to function to use | |
cwRest.CompanyAPI.Contacts.getContacts, | |
// function args | |
[{conditions: `company/id = ${id}`}], | |
// include a reference to function's module | |
cwRest.CompanyAPI.Contacts); |
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
{ | |
"basics": { | |
"name": "Brandon Hubbard", | |
"label": "WordPress Developer", | |
"picture": "http://www.gravatar.com/avatar/3596404cbc9ffb7d4f48524e08340d86.png", | |
"email": "bkhubbard@gmail.com", | |
"phone": "(818) 297-4175", | |
"website": "https://brandonhubbard.com", | |
"summary": "Web Developer Manager at Snap One", | |
"location": { |
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
#!/usr/bin/env bash | |
# ============================================================================= | |
# | |
# *** WARNING: THIS SCRIPT IS NO LONGER MAINTAINED *** | |
# | |
# use https://github.com/keesiemeijer/wp-update instead | |
# | |
# ============================================================================= |
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 | |
if (!defined('ABSPATH')) { | |
exit; | |
} | |
class ajax_class | |
{ | |
public function __construct() | |
{ | |
//Hook = 'wp_ajax_{$action}' where $action must equal the AJAX request's 'action' property. |
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 | |
// PHP memory limit for this site | |
define( 'WP_MEMORY_LIMIT', '128M' ); | |
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
// Database | |
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
// Explicitely setting url |
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
#!/usr/bin/env bash | |
# =============================================================================== | |
# Script to install PHPUnit in the Local by Flywheel Mac app | |
# These packages are installed | |
# | |
# PHPUnit, git, subversion, composer, curl and wget | |
# | |
# WordPress and the WP_UnitTestCase are installed in the /tmp directory | |
# The $WP_CORE_DIR and $WP_TESTS_DIR variables are added to the .bashrc file |