Directory Hooks
Google Apps Directory Hooks Filters: gad_extract_user_data and gad_extra_output_fields These hooks allows you to add your own fields to the Google Apps Directory’s search output. For example, you could add the following code to your functions.php file of your Theme, adding phone numbers to the output (note phone is available by default in the Enterprise version): […]
Drive Hooks
Google Drive Embedder hooks Filter: gde_gather_custom_properties Available in Google Drive Embedder Enterprise plugin only. The Drive Enterprise plugin applies this filter to allow your extension to add custom properties to Google Drive folders and files that you associate with your WordPress site. For example, you could mark all auto-created folders with a special tag that […]
Service Accounts
Service Accounts As of Google Apps Login version 2.5, users can configure a Service Account which your extensions can access. The Google Apps Directory plugin is a free example plugin that takes advantage of this. See gal_gather_serviceacct_reqs below. And here is some example code as to how you might obtain the Service Account object: if […]
Login Hooks
Google Apps Login hooks Action: gal_user_loggedin This action is fired whenever a user is successfully authenticated into WordPress using Google Login. You could use it to obtain and save information such as profile photo URL. Params: $wp_user – the WP_User object that just logged into WordPress (via Google auth) – note this could have been […]
Accessing Config
Accessing core Google configuration Filter: gal_gather_scopes The Login plugin applies this filter to allow your extension to instruct it to obtain extra Google authorization scopes (permissions) when users login to via Google. For example, you can tell the Login plugin to ask for authorization to access the user’s Drive, in addition to the profile permissions […]
Overview
Once you have installed Google Apps Login, your developers can use it as a ‘platform’ allowing them (or other third-party plugins) to centralize all Google API calls and easily add Google functionality. Your WordPress site appears to a Google account as one unified ‘web application’, making it more secure and easier to manage. It also […]