Ejemplo n.º 1
0
/**
 * Registers admin styles.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function carelib_admin_register_scripts()
{
    $suffix = carelib_get_suffix();
    wp_register_script('carelib-dashboard', carelib_get_js_uri("carelib-dashboard{$suffix}.js"), array('jquery-ui-tabs'), CARELIB_VERSION, true);
}
Ejemplo n.º 2
0
/**
 * Register customizer preview scripts.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function carelib_customize_register_preview_scripts()
{
    $suffix = carelib_get_suffix();
    wp_register_script('carelib-customize-preview', carelib_get_js_uri("customize-preview{$suffix}.js"), array('jquery'), CARELIB_VERSION, true);
}