Scripts and Styles (category)

add_editor_style()

Connects a custom CSS file for the TinyMCE visual editor.

wp_add_inline_script()

Adds additional JavaScript code to the registered script.

wp_add_inline_style()

Adds an additional block of CSS styles. CSS is added directly to the HTML document, after the main (specified) styles.

wp_dequeue_script()

Cancels the connection of a script that was previously added to the queue.

wp_dequeue_style()

Removes a CSS stylesheet from the output queue. A file is added to the queue using wp_enqueue_style().

wp_deregister_script()

Deletes a previously registered script.

wp_deregister_style()

Cancels the registration of a CSS stylesheet.

wp_enqueue_code_editor()

Connects all necessary (scripts, styles, settings, languages) for using the built-in code editor in WordPress.

wp_enqueue_editor()

Outputs scripts, styles, and default settings for the WordPress TinyMCE editor. Which can then be initialized on any textarea field after the page loads.

wp_enqueue_media()

Connects all files necessary for using the WordPress media API (file upload and selection window). The function connects scripts, styles, settings, and templates.

wp_enqueue_script()

Correctly connects the script (JavaScript file) to the page.

wp_enqueue_style()

Correctly adds a CSS style file. Registers the style file if it has not been registered yet.

wp_get_custom_css()

Fetches the CSS code from the Theme Customizer settings. The CSS will be retrieved as it is: without a <style> pane.

wp_localize_jquery_ui_datepicker()

Localizes (translates) the jQuery date picker script: jQuery UI datepicker.

wp_localize_script()

Adds additional data before the specified script that is queued for output.

wp_register_script()

Registers a script file to later enqueue it using the function wp_enqueue_script().

wp_register_style()

Registers a CSS file in WordPress. After registration, the file can be added to the HTML document using the wp_enqueue_style() function.

wp_resource_hints()

Outputs <link> tags for dns-prefetch, preconnect, prefetch, prerender.

wp_script_add_data()

Adds data to scripts enqueued with wp_enqueue_script(). For example, when you need to output a script only for "IE 6" or "lt IE 9" (less than IE 9).

wp_script_is()

Determines whether the script file has been registered / added to the output queue / output to the screen.

wp_style_add_data()

Adds metadata to a CSS stylesheet file that has been added with wp_enqueue_style() function. Use it, for example, to make a stylesheet file work only with certain versions of IE browsers.

wp_style_is()

Determines whether the stylesheet has been registered / enqueued for output / output to the screen.