how can i change submit button when the post is publish like change its color


//I just want to change it’s text and color and not clickable when it’s published i try this but i want it when it’s published

function change_publish_btn_txt() {

echo "<script type='text/javascript'>jQuery(document).ready(function(){

    jQuery('#publish').attr('value', 'Your Custom Text');



add_action(‘admin_footer-post-new.php’, ‘change_publish_btn_txt’, 99);

deeeg 5 months 0 Answers 14 views 0

Leave an answer