I hereby claim:
- I am davidcramer on github.
- I am davidcramer (https://keybase.io/davidcramer) on keybase.
- I have a public key ASAQ5m0_eJRy0MBoYiwDFcnQcE2Y9QAAvy1SW8RR84IXggo
To claim this, I am signing this object:
<?php | |
add_filter( 'cloudinary_upload_options', function( $options, $attachment_post, $upload_object ){ | |
/** | |
* Structure of options as follows: | |
$options = array( | |
'unique_filename' => false, // Allow for auto filenames. See Cloudinary docs. | |
'resource_type' => $resource_type, // Type can be 'image' or 'video' or custom. | |
'public_id' => $public_id, // Changing this will change the public ID as stored in Cloudinary. |
I hereby claim:
To claim this, I am signing this object:
<?php | |
add_filter( 'facetwp_facet_html', function( $output, $params ) { | |
if ( 'my_facet' == $params['facet']['name'] ) { | |
$output = ''; | |
$values = (array) $params['values']; | |
$selected_values = (array) $params['selected_values']; | |
foreach( $values as $result ){ | |
$clean_val = esc_attr( $result ); | |
$selected = in_array( $result['facet_value'], $selected_values ) ? ' checked' : ''; |
<?php | |
$module_id = 0; // change this to the ID of your saved module. | |
FLBuilder::enqueue_layout_styles_scripts_by_id( $module_id ); | |
FLBuilder::render_content_by_id( $module_id ); | |
?> |
<script> | |
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
if (FWP.loaded) { | |
setTimeout( function(){ | |
$(matchVars.mh_inner_array.mh_selectors).matchHeight(); | |
}, 250); | |
} | |
}); | |
})(jQuery); |
<?php | |
if ( ! have_posts() ) { | |
echo 'Nothing, sorry.'; | |
return; | |
} | |
?> | |
<table> | |
<thead> |
<?php | |
/* | |
* Plugin Name: Cron Daemon | |
* Plugin URI: https://cramer.co.za | |
* Description: Simple plugin to daemonize the WordPress Cron. | |
* Version: 1.0.0 | |
* Author: David Cramer | |
* Author URI: https://cramer.co.za | |
* License: GPL2+ | |
*/ |
<?php | |
// add the below code to your child themes functions.php file. | |
add_filter( 'facetwp_assets', function( $assets ) { | |
?> | |
<script> | |
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
$('.product').magnificPopup({ |
<?php | |
// add the below code to your child themes functions.php file. | |
function fwps_terms_exclude_index( $params ) { | |
// add your terms in here | |
$terms = array( | |
'expluded-term', | |
'anotehr-expluded' |
<div class="facetwp-wrapper"> | |
[facetwp facet="make"][facetwp facet="keyword"] | |
<div class="facetwp-template"></div> | |
</div> |