Edit a function to take different actions based on user role

wp_update_post() ends up using wp_insert_post(), which has wp_insert_post_data inside it. The filter “Filters slashed post data just before it is inserted into the database.” I think that would be suitable moment to add the custom logic you described as publishorpend method doesn’t seem to have other filters available in it. You could perhaps do something … Read more

How to change the content width using php?

Yes, often the best way is as you describe. In your template file add something like this: <div class=”container-wrap se-366024″> Then in your style.css (or any other enqueued stylesheet) .se-366024 { width:960px; } If you are wanting to set a max width across the site you may want to look into the $content_width global supported … Read more