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 | |
/** | |
* Hashing the password at the time of the registration | |
*/ | |
// Call function to hash the registration password (then enter it into the database however you choose) | |
blow_hash($_POST['password']) | |
// Hash passwords with blowfish | |
function blow_hash($password) { |
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 | |
defined( 'ABSPATH' ) || exit; | |
// Note: `wc_get_gallery_image_html` was added in WC 3.3.2 and did not exist prior. This check protects against theme overrides being used on older versions of WC. | |
if ( ! function_exists( 'wc_get_gallery_image_html' ) ) { | |
return; | |
} | |
global $product; |
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
//DRY option | |
function fizzBuzz() { | |
var output; | |
for(var i=1; i<=20; i++;) { | |
output=''; | |
if(i%3 === 0){ | |
output+='Fizz'; | |
} | |
if(i%5 === 0){ | |
output+='Buzz'; |
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 | |
/** | |
* Template Name: Custom Template -- Replace this with your post type title | |
*/ | |
remove_action('genesis_loop', 'genesis_do_loop'); //Remove the default custom post type loop | |
add_action('genesis_loop', 'custom_post_loop'); //Add custom post type loop | |
remove_action('genesis_before_post_content', 'genesis_post_info'); //Stop post page from displaying the post info (date, comments, etc.) | |
remove_action('genesis_after_post_content', 'genesis_post_meta'); //Stop post page from displaying the post meta (category, tags, etc.) |