remote_get()

This is basically wp_remote_get() with a caching aspect. If a resource is unavailable, Nebula will not remotely request from that hostname for 10 minutes to maintain quick load times. Never…

hubspot()

This function requires the Hubspot API to be added in Nebula Options. It is currently not used for sending Hubspot data as the data is currently sent through the nv()…

has()

Returns boolean. Works well with nested objects- this helps prevent long conditionals like if ( nebula && nebula.client && nebula.client.remote_addr ){…} Note: This function can not detect if an object…

fetch()

For more complicated patterns, you may want to use the Fetch API directly, but this Nebula function simplifies the traditional fetch() pattern significantly for simple tasks.

video_meta()

…have their own APIs for JavaScript integration. It is recommended to read through these as there are many intricate nuances in each. Youtube Iframe API Docs Vimeo Player API Docs…

getYoutubeTitle()

This checks if the undocumented getVideoData() function is available from the Youtube API. Either way it tries to return the most applicable title available. The fallback stack is Youtube title,…

getYoutubeID()

This checks if the undocumented getVideoData() function is available from the Youtube API. Either way it tries to return the most applicable ID available. The fallback stack is Youtube ID,…

addToCache()

This is a convenient way to use the Cache API because it checks for invalid URLs to prevent them from attempting to be added to the cache. It also manages…

memoize()

The Nebula memoize function is treated similarly to the WordPress Transient API.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!