Last active
November 16, 2015 13:18
-
-
Save remcotolsma/6b9f57d8d71360538549 to your computer and use it in GitHub Desktop.
WordPress theme class example
This file contains hidden or 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 AseTheme { | |
public function __construct() { | |
add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ) ); | |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); | |
// ... | |
} | |
public function after_setup_theme() { | |
} | |
public function enqueue_scripts() { | |
} | |
// ... | |
} | |
$ase_theme = new AseTheme(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment