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 | |
/** | |
* Send admin notification to a different email address | |
*/ | |
function affwp_custom_registration_admin_email( $email ) { | |
// add the email here | |
$email = '[email protected]'; | |
return $email; |
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
/* | |
* Send notifications only to certain devices | |
*/ | |
// Change this hook | |
add_action( 'save_post', 'push_to_devices' ); | |
function push_to_devices() { | |
// this should be an array of user IDs that you want to send the pushes too. AppPresser saves device IDs if the app user is a logged in member of your WordPress site, for example in BuddyPress. This will not work unless the user has logged in through your app. |
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 include this | |
/** ==================================================================================== | |
* Break more link outside the paragraph in the loop on all archives (home, archives, search, etc) | |
==================================================================================== **/ | |
function yourprefix_excerpt_more_link() { |