[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