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
//edit domain.com | |
openssl ciphers -v | awk '{print $1}' | while read cipher; do echo Testing $cipher...; openssl s_client -connect domain.com:443 -cipher $cipher </dev/null 2>&1 | grep -E "Cipher|handshake"; done |
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
/** | |
* | |
* When indexing, for every post, for the location filter, | |
* Check to see if it has any location taxonomy set | |
* Check to see if selected location taxonomy has children (i.e. selected county has cities) | |
* Create a new index row for each child city | |
* | |
* So that Admin Panel editors can check only county for content | |
* But front-end users will be able to type city into autocomplete and find parent county content | |
*/ |
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
/** | |
* hide 'for parents' and 'featured' categories in list of cats in post's postmeta | |
*/ | |
function ca_response_exclude_category_from_postmeta( $categories ) { | |
$exclude = array( 'featured','for-parents' ); | |
foreach ( $categories as $index => $category ){ | |
if ( in_array( $category->slug, $exclude ) ){ | |
unset( $categories[ $index ] ); | |
} | |
} |
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
/** | |
* | |
* UAG Post Grid block displays one category for each post | |
* filter to display all categories, | |
* original display remains in block - has to be hidden with CSS | |
*/ | |
function ca_response_single_post_meta_before_meta_grid( $post_id, $attributes ) { | |
//copied from astra/inc/blog/blog-config.php : astra_get_post_meta | |
global $post; |
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
<script> | |
jQuery(document).ready(function(){ | |
var totalheight = 0; | |
jQuery(".et-l--header .et_builder_inner_content .et_pb_section").each(function(){ | |
totalheight = totalheight + jQuery(this).outerHeight(); | |
}); | |
totalheight = totalheight + "px"; | |
jQuery("#et-main-area").css("padding-top",totalheight); | |
}); | |
</script> |
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
/** | |
* Filter to customize FacetWP, should be pasted in FacetWP's "Custom Hooks" plugin | |
* | |
* Made as a demo so I could figure out how FacetWP index filter works. | |
* gives every post an entry in the "location_filter" facet | |
* | |
*/ | |
add_filter( 'facetwp_indexer_row_data', function( $rows, $params ) { | |
if ( 'location_filter' == $params['facet']['name'] ) { | |
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
/** | |
* Filter to customize FacetWP, should be pasted in FacetWP's "Custom Hooks" plugin | |
* | |
* Made for a "location" FacetWP autocomplete filter that uses a taxonomy "location" | |
* consisting of parent county terms and child city terms | |
* | |
* When indexing, for every post, for the location taxonomy filter, | |
* Check to see if it has any location taxonomy set | |
* Check to see if selected location taxonomy has children (i.e. selected county has cities) | |
* Create a new index row for each child city |
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 | |
/* | |
Not intended for display! | |
This page template generates a list of all categories and all tags. Will display for pages titled "taxonomy report" | |
Set page to Private and send clients the link so they can see their taxonomy | |
Author: Clare | |
January 2019 | |
*/ | |
get_header(); ?> | |
<?php if ( have_posts() ) : ?> |
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
/* | |
For when there's a category of team bios. | |
If you create them up in alphabetical order, | |
then the reverse date order will retain that order | |
This goes in functions.php | |
*/ | |
/*Order bio Posts in reverse date order, set limit at 30 posts */ | |
function prefix_modify_query_order( $query ) { |
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: Download member report as csv | |
Plugin URI: http:// | |
Description: This plugin is called when the 'download csv' button is clicked on the Member Reports page containing FacetWP search | |
Version: 1.0 | |
Author: [email protected] | |
Author URI: http://www.greenbee-web.com/ | |
License: GPL2 |
NewerOlder