$prefix
$prefix : string
Class responsible for sending notifications triggered by the right events via the right mechanisms.
register() : void
Entry point for the WordPress framework into plugin code.
This is the method called when WordPress loads the plugin file. It is responsible for "registering" the plugin's main functions with the WordPress Plugin API.
install_plugin_dependency(string $slug, string $version = '')
Automates installation of other plugins that we need.
We only use this for the WP REST API at the moment. It's the 1 and only dependency we have on other plugins. When that plugin gets added to WP Core, we can remove this code.
As a result, note that this code is SPECIFIC to the rest-api
plugin. It will not work as-is for other plugins.
string | $slug | |
string | $version |
renderWebAppHTML() : void
Prints meta tag indicators for native-like functionality.
The "activate alert" screen is intended to be the web app "install" screen for Buoy. We insert special mobile browser specific tags in order to create a native-like "installer" for the user. We only want to do this on this specific screen.
__construct() : \WP_Buoy_Notification
Constructor.
addedToTeam(integer|string $who, \WP_Buoy_Team $team, boolean $notify = true) : void
Schedules a notification to be sent to the user.
integer|string | $who | |
\WP_Buoy_Team | $team | |
boolean | $notify | Whether or not to schedule a notification. |
removedFromTeam(integer $user_id, \WP_Buoy_Team $team) : void
Removes any scheduled notices to be sent to the user.
integer | $user_id | |
\WP_Buoy_Team | $team |
inviteNewUser(\WP_Buoy_Team $team, string $email) : void
Sends an email inviting a new user to join this Buoy.
\WP_Buoy_Team | $team | |
string |
getEmailToSmsGatewayDomain(string $provider) : string
Utility function to return the domain name portion of a given telco's email-to-SMS gateway address.
The returned string includes the prefixed @
sign.
string | $provider | A recognized |