Hello and thank you for helping in advance,
I am trying to create a widget that lives inside the post.php page for when editing a post that exists (Not new-post.php, I need an ID). This custom widget is going to get the posts ID and shoot it to another database to store it, it'll do this through ajax and have it's own independent save button.
Pretty simple right? Except I can't figure out how to get my widget to show on the post.php page.
Here is my test code in themes/myTheme/functions.php, just to try and get it in the right place...but it's not working.
function artist_associator_dashboard_widget_function(){
echo "Hello world";
}
function artist_associator_add_dashboard_widget(){
wp_add_dashboard_widget('artist_associator_dashboard_widget', 'Artist Associator', 'artist_associator_dashboard_widget_function');
}
add_action('wp_dashboard_setup','artist_associator_add_dashboard_widget');
I also tried putting in a few other actions that looked promising but it wasn't working out, couldn't find my functions.