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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples. |
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
# A heavily customized VCL to support WordPress | |
# Some items of note: | |
# Supports https | |
# Supports admin cookies for wp-admin | |
# Caches everything | |
# Support for custom error html page | |
vcl 4.0; | |
import directors; | |
import std; |
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
/* -- Start Story override code removes background 1x1 image -- */ | |
.template-product .lazy-image {background-image: none !important;} | |
/* - end - */ |
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 // omit opening PHP tag | |
add_filter( 'matador_application_fields_structure', 'mdocs_change_state_field_to_US_states_dropdown', 50, 1 ); | |
/** | |
* Matador Change "State" to US States Dropdown | |
* | |
* Change the state/province application form field to a drop-down (<select>) of US states and territories. | |
* | |
* @since 2021-02-22 | |
* | |
* @param array $fields Array of Form Fields |
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 | |
/** | |
* Add Logo to Job Structured Data (JSON+LD) | |
* | |
* @see https://matadorjobs.com/support/documentation/add-a-logo-to-google-for-jobs-listings/ | |
* | |
* @param array $ld the Job Structured Data before save. | |
* @return array $ld the modified Job Structured Data for saving. | |
*/ | |
function mj_add_logo_to_job_jsonld( $ld ) { |
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
# Merge from remote to local (exclude .svn folders) | |
rsync -av --exclude '.svn' [username]@[server]:/[path-to-folder]/[folder] ./ | |
--progress | |
# Use this flag to show progress | |
# ./ means merge into the current folder (it needs to exist!) | |
# Reverse paths to go from local to remote |
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
/* Regular jQuery */ | |
$('.hideable').on('click', function() { | |
$(this).hide(); | |
}) | |
/* Compatibility Mode */ | |
jQuery('.hideable').on('click', function() { | |
jQuery(this).hide(); | |
}) |
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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/** | |
* Disables the XML Sitemap transient caching in WordPress SEO and WordPress SEO Premium. | |
* WARNING: This may lead to a heavier load on your server and your sitemaps being loaded less fast. | |
*/ | |
add_filter( 'wpseo_enable_xml_sitemap_transient_caching', '__return_false' ); |