Hooks are a WP function that do not and cannot exist within the_content of your posts, whether that be the classic WP editor or GP Sections. The method i provided above is the only way of adding a hook to the content. Once the shortcode is setup then you can use GP Hook Element or write your own add_action function to hook in your code.