Suggestion: change what action triggers queue_slider
-
I’m using some hacks and quirks to make some additional database calls from pages not created through the WP admin panel (they are located in the top folder of WordPress). To get them to work I must use define(‘WP_USE_THEMES’, false); , and that collides with the action that triggers the queue_slider which broke the slider on those pages. A simple switch from
add_action( 'template_redirect', array( &$this, 'queue_slider' ) );
to
add_action( 'wp_loaded', array( &$this, 'queue_slider' ) );
got it working, and it doesn’t seem to affect anything else. Could this perhaps be changed in the package, meaning that it doesn’t break when I upgrade? ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggestion: change what action triggers queue_slider’ is closed to new replies.