Finding an Deregistering Assets Manually

…time will be faster. Deregistering styles and scripts via Nebula Options Nebula provides an advanced feature that scans the front-end for registered styles and scripts, and allows administrators to easily…

nebula_sw_message

…service worker, use navigator.serviceWorker.controller.postMessage(data), or the more convenient Nebula alias: nebulaPostMessage Deprecated in favor of Workbox Window. Use workbox.messageSW()[code] after it has been activated (Listen for [code]nebula_workbox_active on the document)....

How to use the JavaScript WordPress Hooks API (Without Any Extra Libraries)

…call wp.hooks. Like this: register_script(‘nebula-whatever’, get_template_directory_uri() . ‘/assets/js/nebula.js’, array(‘jquery-core’, ‘wp-hooks’), ‘1.2.3’, true); Or with Nebula (to add defer and module types to the script): nebula()->register_script(‘nebula-main’, get_stylesheet_directory_uri() . ‘/assets/js/main.js’, array(‘defer’, ‘module’),…

feedback()

…choose not to have this send emails, but instead log them to the database using any CF7 database plugin (one is bundled with Nebula, but you must activate it yourself)….

Utilities

Latest Updates Utility Created Created (UTC) Modified Modified (UTC) Keywords Google Analytics Campaign URL Generator January 18, 2017 1484715600 December 13, 2017 1513199280 Google Analytics Campaign URL Generator utm tag…

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…

timer()

Timings are stored in nebula()->server_timings and categories are separated into a nebula()->server_timings[‘categories’] array. Timings will automatically appear for developers, but the query string ?timings must be used for non-developers (or…

Manifesto

The goal of Nebula is to be both a powerful framework for professional developers as well as a learning resource for entry-level and hobbyist programmers. To accomplish this, Nebula follows…

logo()

This function prioritizes in the following order: A custom function that hooks into `nebula_logo` (an image file URL is the expected return) Customizer on sub-page when that one-color logo checkbox…

move_jquery_to_footer()

This function wouldn’t be called directly, but becomes important when squeezing every millisecond out of performance. The Nebula Option for jQuery allows for it to be moved to the footer….

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!