Check if a new WordPress post is successfully published with jQuery

I have replace the answer I gave yesterday with this newly updated and tested version. I also added some code to test with that changes Publish to Update after 6 seconds. Please give it a shot. <input type=”submit” name=”save” id=”publish” class=”button button-primary button-large preventDefault” value=”Publish”> <script> var publishButton = document.getElementById(‘publish’); var checkPublishStatus = setInterval(function() { … Read more

update asset url on free slider revolution version 6.5.25

surely @caleb’s answer is the best but right now I can’t use it. I used the response found in: Need to Replace Old URL with New URL in Revolution Slider. here I put the steps: I export the slider in the local environment. then in the slider-revolution section we go to ‘Manual Import‘

Bulk post approval and publishing doesn’t work

The problem I can immediately see is, you’ve set: ‘post_status’ => ‘published’ This should be: ‘post_status’ => ‘publish’ Also, since you are only updating the post status, it’s less error prone and more appropriate to use wp_publish_post function instead of wp_update_post function. With this change, your karma_approve_all_posts() function will look like this: function karma_approve_all_posts( $posts … Read more

Problems in updating a self-developed plugin

I could solve the problem myself. Here are the resources that help in finding the (my) fault: WordPress@Stackoverflow: Update Plugin Detailed description, that explained the same as above in my workflow. Expanded version of the above WordPress Documentation: Header information in readme.txt This was the final point. I had in my readme.txt in the header: … Read more

How can add custom commands in post-new.php in wordpress

You could run this code inside of an action on transition post status. Any time a post is published you could run this code to generate and upload the HTML to your FTP server. function post_published( $new_status, $old_status, $post ) { if ( $new_status == ‘publish’ ) { // Build your file and upload it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)