Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Change Default State for Dark Mode */
- function dark_mode_default_state() {
- if ( ! isset( $_COOKIE['darkmode'] ) ) {
- setcookie( 'darkmode', 'true' );
- }
- }
- add_action( 'init', 'dark_mode_default_state' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement