I'm having issues grabbing some actions inside a navigation menu..
So it's going like this(for the publish button) HTML
<a href="javascript:updatepost()" class="menu-item fa fa-facebook">Save</a>
<script>
function updatepost()
{
jQuery('#publish').click();
};
</script>
What i can't find tho it's to do the same(or something similar) for the "Move to Trash" and change the post status to 'pin_featured'
Any guidance it's much apreciated!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire