Created
February 1, 2012 10:03
-
-
Save amadoru/1716313 to your computer and use it in GitHub Desktop.
qp_enqueue_styles trouble a little bit more explained.
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 | |
| /* | |
| Plugin Name: Match Generator | |
| Plugin URI: | |
| Description: This plugin will generate match .inb files which can be pushed to the device. | |
| Version: 1.0 | |
| Author: Amadoru | |
| Author URI: | |
| */ | |
| add_shortcode('ced_match_export', 'ced_match_export'); | |
| //add_action('wp_head', 'add_styles_scripts'); | |
| add_action('wp_enqueue_scripts', 'add_styles_scripts'); | |
| function add_styles_scripts() { | |
| echo("bazinga"); //This echoes to the head no issues there | |
| wp_register_style('ced-match-export-style', puglins_url() . 'style.css'); | |
| wp_enqueue_style('ced-match-export-style'); | |
| //nothing goes to the output stream yet. | |
| wp_print_styles(); //Only _this_ can do the output magic. but why? | |
| } | |
| function ced_match_export() { | |
| //and things goes here on and on and on .... | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment