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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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 | |
/** | |
* Override the output of the submit button on forms, useful for | |
* adding custom classes or other attributes. | |
* | |
* @param string $button An HTML string of the default button | |
* @param array $form An array of form data | |
* @return string $button | |
* | |
* @filter gform_submit_button |
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
##Pre 18.04 versions: | |
sudo apt-get install pdftk | |
-------------------------- | |
##Ubuntu 18.04 - #credit to abu_bua - see https://askubuntu.com/questions/1028522/how-can-i-install-pdftk-in-ubuntu-18-04-and-later | |
cd /tmp | |
wget http://launchpadlibrarian.net/340410966/libgcj17_6.4.0-8ubuntu1_amd64.deb \ |
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 helper function to grab existing forms and splice them into another form - kinda like form templates | |
* | |
* @param int $template_form_id - the ID of the form you want to copy over | |
* @param int $destination_form_id - ID of the form you want to copy it to | |
* @param int $num_fields_to_skip - how many fields to skip before splicing the form in. Note: this is a count, | |
* NOT 0 index. 2 = 2 fields. | |
* | |
* @author Nick Jeffers | |
* @url nickjeffers.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
/** | |
* Force Woocommerce to require payment on all orders | |
* | |
* @author Nick Jeffers | |
* @url nickjeffers.com | |
*/ | |
add_filter( 'woocommerce_cart_needs_payment', '__return_true', 10, 2 ); |