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
/** | |
* Adjust WP ULike Reference | |
* When getting points for liking a content, change the reference | |
* to identify the post type so we can create badges for each post type | |
* that gets liked instead of just one for all likes. | |
* @version 1.0 | |
*/ | |
add_filter( 'mycred_run_this', 'mycred_wpulike_per_cpt', 10, 3 ); | |
function mycred_wpulike_per_cpt( $run_this, $mycred ) { |
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
/** | |
* | |
* Simple jQuery Script to parse credit card data | |
* that was collected via a USB Magnetic Stripe | |
* Credit Card Reader. | |
* | |
* To get this to work, focus your cursor (either | |
* programmatically or via a click, it's your choice) on an input field #credit-card-number | |
* and then with the card reader plugged in, swipe | |
* the card and it will take over from there |