# webling/3.0/src/admin/actions/add_headers.php

Webling, version 3.0. 18 lines.

- Page: https://pluginprobe.com/plugins/webling/3.0/code/src/admin/actions/add_headers.php
- Raw: https://pluginprobe.com/plugins/webling/3.0/raw/src/admin/actions/add_headers.php
- Modified: 2017-01-05T09:58:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/webling/3.0/code/src/admin/actions/add_headers.php#L10-L20`.

```php
<?php

function webling_admin_add_headers($hook)
{
	// only on webling admin pages
	if (substr($hook,0,7) == 'webling' || $hook == 'toplevel_page_webling_page_main') {

		// Plugin
		wp_enqueue_style('webling_admin_css', plugins_url('css/admin.css', WEBLING_PLUGIN_FILE_NAME));
		wp_enqueue_script('webling_admin_js', plugins_url('/js/admin.js', WEBLING_PLUGIN_FILE_NAME));

		// jQuery UI
		wp_enqueue_style('webling_admin_css_jquery_ui', plugins_url('js/jquery-ui-1.12.1.custom/jquery-ui.min.css', WEBLING_PLUGIN_FILE_NAME));
		wp_enqueue_script('jquery');
		wp_enqueue_script('jquery-ui-sortable');
	}
}

```
