Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created September 12, 2014 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommcfarlin/e80317d2842b6450804c to your computer and use it in GitHub Desktop.
Save tommcfarlin/e80317d2842b6450804c to your computer and use it in GitHub Desktop.
[WordPress] A gist that's used in a post for showing to give those without source control access to make changes to the stylesheet.
<?php
class Acme_Plugin {
public function __construct() {
add_action( 'admin_enqueue_scripts', array( $this, 'add_styles' ) );
}
public function add_styles() {
wp_enqueue_style(
'acme-admin-custom',
plugins_url( ACME_PLUGIN_NAME . '/admin/assets/css/acme-custom.css' ),
array(),
ACME_VERSION,
'all'
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment