{"action":"created","issue":{"url":"https://api.github.com/repos/projectestac/wordpress-add-to-any/issues/1","labels_url":"https://api.github.com/repos/projectestac/wordpress-add-to-any/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/projectestac/wordpress-add-to-any/issues/1/comments","events_url":"https://api.github.com/repos/projectestac/wordpress-add-to-any/issues/1/events","html_url":"https://github.com/projectestac/wordpress-add-to-any/issues/1","id":111987571,"number":1,"title":"Allow hook to wp_footer()","user":{"login":"odie2","id":9401878,"avatar_url":"https://avatars.githubusercontent.com/u/9401878?v=3","gravatar_id":"","url":"https://api.github.com/users/odie2","html_url":"https://github.com/odie2","followers_url":"https://api.github.com/users/odie2/followers","following_url":"https://api.github.com/users/odie2/following{/other_user}","gists_url":"https://api.github.com/users/odie2/gists{/gist_id}","starred_url":"https://api.github.com/users/odie2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odie2/subscriptions","organizations_url":"https://api.github.com/users/odie2/orgs","repos_url":"https://api.github.com/users/odie2/repos","events_url":"https://api.github.com/users/odie2/events{/privacy}","received_events_url":"https://api.github.com/users/odie2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-17T22:09:32Z","updated_at":"2015-10-19T19:19:05Z","closed_at":"2015-10-19T08:51:15Z","body":"Hi,\r\n\r\nI just done rewriting [Hyphenator](https://wordpress.org/plugins/hyphenator/) plugin (version 5.1.5 not yet published) in favor of cleaning blocking-loading scripts in head of my websites.\r\n\r\nAs I am using AddToAny on most of my websites it would be nice to have possibility to hook it to `wp_footer()` instead of `wp_head()`.\r\n\r\nI 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:\r\n\r\n`add_option( 'hyphenator_scripthook', 'wp_head' );`\r\n`add_action( get_option( 'hyphenator_scripthook' ), 'hyphenator_hook', 100 );`\r\n```\r\n<select id=\"opt10\" name=\"hyphenator_scripthook\">\r\n\t<option value=\"wp_head\" <?php selected( $hyphenator_['scripthook'], 'wp_head' ); ?>>wp_head()</option>\r\n\t<option value=\"wp_footer\" <?php selected( $hyphenator_['scripthook'], 'wp_footer' ); ?>>wp_footer()</option>\r\n</select>\r\n```\r\n\r\nThanks in advance,\r\nGreetings"},"comment":{"url":"https://api.github.com/repos/projectestac/wordpress-add-to-any/issues/comments/149317987","html_url":"https://github.com/projectestac/wordpress-add-to-any/issues/1#issuecomment-149317987","issue_url":"https://api.github.com/repos/projectestac/wordpress-add-to-any/issues/1","id":149317987,"user":{"login":"odie2","id":9401878,"avatar_url":"https://avatars.githubusercontent.com/u/9401878?v=3","gravatar_id":"","url":"https://api.github.com/users/odie2","html_url":"https://github.com/odie2","followers_url":"https://api.github.com/users/odie2/followers","following_url":"https://api.github.com/users/odie2/following{/other_user}","gists_url":"https://api.github.com/users/odie2/gists{/gist_id}","starred_url":"https://api.github.com/users/odie2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odie2/subscriptions","organizations_url":"https://api.github.com/users/odie2/orgs","repos_url":"https://api.github.com/users/odie2/repos","events_url":"https://api.github.com/users/odie2/events{/privacy}","received_events_url":"https://api.github.com/users/odie2/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T19:19:05Z","updated_at":"2015-10-19T19:19:05Z","body":"Yea, I didn't readed description on the top, just have clicked first matching link in search engine ;)\r\nThanks for figuring me out.\r\n\r\nReported on [forum](https://wordpress.org/support/topic/allow-hook-to-wp_footer).\r\n\r\nGreetings"}}