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 // don't copy this line!!! | |
/** | |
* Displays custom text for the Mark Complete button but only for a | |
* specific course | |
* | |
* Added: 2-17-2017 Tyler Kemme | |
*/ | |
function custom_mark_complete_text( $button_text, $lesson ) { |
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 php script queries a form at | |
* http://scriptserver.mainframe8.com/wordpress_password_hasher.php to get a | |
* hashed version of a provided or default password | |
* | |
* This script is run using the command 'wpash <password>'. If the command is run without | |
* any parameters it will return the hash of the string 'password'. If a parameter is provided | |
* (example: 'wpash P@s$w0rD'), this script will return the hash of the string 'P@s$w0rD' | |
* This can be used in an Alfred Workflow to hash passwords for Wordpress sites. A great tool | |
* for developers who manage databases for a lot of Wordpress sites |
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
{ | |
"particles": { | |
"number": { | |
"value": 60, | |
"density": { | |
"enable": true, | |
"value_area": 800 | |
} | |
}, | |
"color": { |
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
{ | |
"particles": { | |
"number": { | |
"value": 60, | |
"density": { | |
"enable": true, | |
"value_area": 800 | |
} | |
}, | |
"color": { |
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
# 1. Access box via ssh | |
vagrant ssh | |
# 2. Update packages and make sure debug is install | |
sudo apt-get update | |
sudo apt-get install php-xdebug | |
# 3. Open Xdebug Config File |
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 // don't copy this line to your functions.php file | |
/** | |
* | |
* Create Company Industry as a custom field upon registration or checkout | |
* | |
* @param $fields - fields already being registered | |
* @param $screen - either checkout or registration screen | |
* @return $fields - array with added field | |
*/ | |
function add_company_industry_lifterlms ( $fields , $screen ) { |
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 php script queries a form at http://www.lipsum.com/ to get a | |
* hashed version of a provided or default password | |
* | |
* This script is run using the command 'lipsum p 4' where p stands for | |
* paragraph and 4 is the number of paragraphs. Other option is w for words. | |
* | |
*/ | |
// Query in the form of two parameters 'type' and number of 'type' |