Sorry, I don't understand your question completely. But in regards to your code snippet, beans_post_image()
won't work if it is inside ?>beans_post_image()<?php
.
Even with the PHP tags removed, your code will result in an error because the beans_post_image
hook is part of the markup generated by beans_post_image()
. You'll probably get a timeout or infinite loop.