This is the public
folder for Project Name. It can be used for your local development and is also used to push code to the staging and live environments via WP Engine's Git Push.
It currently contains the source code for:
This is the public
folder for Project Name. It can be used for your local development and is also used to push code to the staging and live environments via WP Engine's Git Push.
It currently contains the source code for:
# Wordpress - ignore core, configuration, examples, uploads and logs. | |
# Forked from: https://github.com/github/gitignore/blob/main/WordPress.gitignore | |
# Core | |
/wp-admin/ | |
/wp-content/index.php | |
/wp-content/languages | |
/wp-content/plugins/index.php | |
/wp-content/themes/index.php | |
/wp-content/uploads/ |
<?php | |
/** | |
* Our custom alternative to wc_mail. | |
* | |
* @param mixed $to Receiver. | |
* @param mixed $subject Subject. | |
* @param mixed $message Message. | |
* @param string $headers Headers. (default: "Content-Type: text/html\r\n"). | |
* @param string $attachments Attachments. (default: ""). | |
* @return bool |
<?php | |
// Put this in wp-config.php and replace https://example.com/ with the URL of the production site. | |
define( 'BC_USE_REMOTE_MEDIA_URL', 'https://example.com' ); | |
// Put the rest of this in functions.php or a custom plugin or somewhere else. | |
if ( defined( 'BC_USE_REMOTE_MEDIA_URL' ) && ! empty( BC_USE_REMOTE_MEDIA_URL ) ) { | |
add_filter( 'wp_get_attachment_image_src', 'bc_filter_wp_get_attachment_image_src' ); | |
add_filter( 'wp_calculate_image_srcset', 'bc_filter_wp_calculate_image_srcset' ); | |
add_filter( 'wp_get_attachment_url', 'bc_filter_wp_get_attachment_url' ); | |
} |
(function($) { | |
$(document).ready(function($){ | |
}); | |
})( jQuery ); |
{ | |
"JQuery Frame": { | |
"prefix": "wpjquery", | |
"body": [ | |
"(function($) {", | |
"", | |
"\t$(document).ready(function($){", | |
"", | |
"\t\t$1", | |
"", |
<?php | |
/** | |
* Post rendering content according to caller of get_template_part | |
* | |
* @package Understrap | |
*/ | |
// Exit if accessed directly. | |
defined( 'ABSPATH' ) || exit; | |
?> |
<?php | |
/** | |
* The template for displaying archive pages | |
* | |
* Learn more: http://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package Understrap | |
*/ | |
// Exit if accessed directly. |
// Add your custom JS here. | |
import Popover from 'bootstrap/js/dist/popover' | |
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) | |
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { | |
return new Popover(popoverTriggerEl) |