Allow hook to wp_footer()
-
Hi,
I just done rewriting Hyphenator plugin (version 5.1.5 not yet published) in favor of cleaning blocking-loading scripts in head of my websites.
As I am using AddToAny on most of my websites it would be nice to have possibility to hook it to
wp_footer()
instead ofwp_head()
.I could do it, but you have also unclean code and some instances of
<script>
, so I prefer to don’t touch this. However, if you were so helpful to do it, below are some advices I used in Hyphenator:add_option( 'hyphenator_scripthook', 'wp_head' );
add_action( get_option( 'hyphenator_scripthook' ), 'hyphenator_hook', 100 );
<select id="opt10" name="hyphenator_scripthook"> <option value="wp_head" <?php selected( $hyphenator_['scripthook'], 'wp_head' ); ?>>wp_head()</option> <option value="wp_footer" <?php selected( $hyphenator_['scripthook'], 'wp_footer' ); ?>>wp_footer()</option> </select>
Thanks in advance,
Greetings
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Allow hook to wp_footer()’ is closed to new replies.