How is it possible to use a very reduced version of WordPress?
How is it possible to use a very reduced version of WordPress?
How is it possible to use a very reduced version of WordPress?
Yes, it sounds like you do want a post transition hook, probably draft_to_publish as per the following from the Codex: function your_callback( $post ) { // Code here } add_action( ‘draft_to_publish’, ‘your_callback’ ); Use authorNotification— your function name– instead of your_callback. It should be fairly simple in your case. However, the precise details of your … Read more
Postdata for all post types (post, page and any custom post type) are stored in exactly the same way and is returned in exactly the same way. The WP_Post are build exactly the same each time. The use of template tags are also not different in any way. In short, what works for normal posts … Read more
It’s a normal behaviour of WordPress if you have attachments in your post and revision enable for your site. When an attachment is added to a post, the attachment post_status is inherit of the parent post, and the logic is that the ping status is set to closed. When revisions are enable, a copy of … Read more
It sounds like you’re looking for the publish_post hook which (per the Codex): Runs when a post is published, or if it is edited and its status is “published”. Action function arguments: post ID. Alternately, there’s save_post which is triggered whenever a post or page is created or updated, which could be from an import, … Read more
This can be done with css. Look for word-wrap and change it to below: .class-name { word-wrap: normal; -webkit-hyphens: none; -moz-hyphens: none; hyphens: none; }
I’m afraid I don’t understand the question perfectly, so I apologize, but, $post_status=”publish”; Wouldn’t that do it? I am missing context though, are you building a query? Because to get all the posts by the current user, something like this would be needed: $args = array( “post_status” => “publish”, “author” => get_current_user_id(), “posts_per_page” => 10 … Read more
Quite easily: Go to your Admin Panel –> Posts Select the posts you want to change back to drafts Under Bulk Actions Click on Edit Under Status click on Draft and press Apply Finished If you have more posts, just go through them the same way. 🙂
There is a very easy solution to your problem. Just add a capability to the particular role of this user, through the Wp_Role class. WordPress has this feature of Submitting for Review active for authors and contributor by default, but, if you want to use pages, you have to give them the edit_pages capability, but … Read more
Ok, figured it out: my first pull from svn was not successful, on second try, the directories are there.