Created
May 24, 2013 00:53
-
-
Save LinzardMac/5640615 to your computer and use it in GitHub Desktop.
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
include_once('/home/bscdevel/public_html/wirerackblog/wp-load.php'); | |
// returns https://gist.github.com/Lindsayanng/5640605 | |
var_dump($wp_query); | |
class WordpressHeader extends Module | |
{ | |
public function hookDisplayHeader(){ | |
if( !defined( 'WP_USE_THEMES' ) ) | |
define('WP_USE_THEMES', true); | |
return '<link rel="stylesheet" type="text/css" media="all" href="'. get_stylesheet_uri() . '">'; | |
do_action( 'init' ); | |
global $wp_query, $wp_registered_sidebars, $wp_registered_widgets; | |
} | |
public function hookDisplayFooter(){ | |
//here it returns NULL | |
var_dump($wp_query); | |
return dynamic_sidebar( 'footer' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment