- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/5798930 (
git reset
vsgit rm --cached
)
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 | |
/** | |
* WooCommerce Bookings Availability Search | |
* | |
* This is almost pseudo code, it only serves to explain the "how to do it" and does not attempt to be "The Way" to do it. | |
* NOTE: This NEEDS to be refined in order to work as expected. | |
* | |
* @author António Pinto <[email protected]> | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
* |
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. | |
* | |
* All credits go to luetkemj. Thanks! | |
* | |
* @author luetkemj <[email protected]> | |
* @author s3rgiosan <[email protected]> | |
* | |
* @see http://codex.wordpress.org/Class_Reference/WP_Query#Parameters |
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 | |
/** | |
* Contact Form 7 - Conditionally Chance Recipient to Post Meta | |
* | |
* This function gets the current post id and grabs the desired meta to use | |
* it on the submited form data to change the recipient email conditionally. | |
* You can add some conditional checks to make sure the data is correct. | |
* | |
* @author António Pinto <[email protected]> | |
* @link https://gitlab.com/snippets/1662384 |
I hereby claim:
- I am apintocr on github.
- I am apintocr (https://keybase.io/apintocr) on keybase.
- I have a public key ASCDtX-QTGEj2cVE1dTxEwJoy_-Z5CrpU3Sax70BR0S0ogo
To claim this, I am signing this object:
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 | |
/** | |
* Edit Subject on Divi Contact Form (using add_filter) | |
* | |
* Divi contact form does not allow you to change the subject from the interface. | |
* The problem is that on clients like Gmail the messages get threaded/organized under the same item/title. | |
* To solve this we need a unique subject for each new contact. | |
* However, Divi contact module does not have many hooks or filters, only allowing us to change the $headers[] | |
* This would be great if the 'Subject:' was set on that variable, it is not, so we need to ADD a extra 'Subject:' | |
* not an ideal solution, but it works and currently it is the only way to do this without editing the theme files. |