-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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