Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [status]

The tag has no usage guidance.

0
votes
0answers
22 views

Custom post status not working in REST API

I am trying to add a custom post status to my custom post types using thefollowing code: // Register new post status function my_custom_status_creation(){ register_post_status( 'approved', array( ...
0
votes
0answers
9 views

WooCommerce : Create email for custom status, appear in backoffice

I need to create an email which would be sent to customer when switching to a custom status. Does anyone know a good and updated tutorial to do this? Thank you :)
0
votes
1answer
15 views

Hide or remove custom post status

I want to hide or remove a custom post status when it is set to a specific one. e.g. If I have a post set to status "pendingreviewf" I want to hide the option to change it to the status "shipedf" ...
0
votes
0answers
18 views

order status not getting assigned properly for paypal payment

Scenario I'm using paypal sandbox account for payment right now and I've set it up correctly , the order is getting successfully placed if I use paypal payment while checkout. But the status should ...
0
votes
1answer
19 views

Do action for only switch status for publish_post

I am creating notification e-mail for approved post. It sends mail to author like 'your post approved'. So i am using publish_post filder. function notificationApprove( $ID, $post ) { // Send ...
0
votes
0answers
15 views

Custom status and permalinks don't work?

To satisfy a site migration from another platform, we have implemented custom statuses using the standard `register_post_status()' approach. $args = array( 'label' => _x( '...
0
votes
1answer
46 views

wp_dropdown_pages : choose post status to list in dropdown

I would like to create a dropdown of all schedule and publish CPT posts. I seems function wp_dropdown_pages only displays list of publish posts, is it possible to choose which post states to display ?...
1
vote
1answer
353 views

stop login if user_status equal zero

i'm trying to create simple approval users plugin to denay or approve new user, so i used default user_status to do that, what i'm asking for how can i stop the login form to save session and add ...
0
votes
1answer
734 views

Send default WooCommerce email when switching from custom order status

I have implemented custom order status on-review and now I need to send WooCommerce default on-hold email when switching order statuses from on-review to on-hold. In order to do this, I have to add ...
0
votes
2answers
562 views

Custom post status filter links always show a count of all posts in the site with that status, not the logged in users count

I have a custom post status and the issue I have is that the filter option for it that automatically appears above the post listings on the edit.php page of the WP admin shows a total count of all the ...
-1
votes
1answer
984 views

hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users

I am trying to display Woocommerce Dashboard Status where sales reports are displayed only to following users. user1 > shop manager and administrator Trying to hide Dashboard Status and Report and ...
1
vote
1answer
564 views

Change Visibility to Private

I am trying to figure out if there is a way to change the status of a post to private after a comment has been submitted. More specifically 3 comments, I do already have some code made up and would ...
-1
votes
1answer
33 views

I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish

I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish. $post_status = 'draft'; I would like to use publish. What should I ...
6
votes
2answers
244 views

Let private posts stay in status “private” after edit through “editors”

I'm using some private posts for intern purposes. When an editor changes something on these posts, its status turns to pending "review" and I have to publish it again as a private post. When an ...
0
votes
1answer
377 views

Submitted for Review back to a Draft page

I would like to allow a WordPress contributor to change a draft page Submitted for Review back to a draft page without giving the contributor the capability to publish pages. I have tried without ...
2
votes
1answer
295 views

How does WordPress track that a certain User is Logged-In

I am trying to identify the elements that WP uses to track that a user is logged in at any given time. (1) I know WP sets a COOKIE for tracking Does anyone know if WordPress also sets a _SESSION ...
0
votes
1answer
2k views

Hiding by default specific post status on backend list?

I created various custom post status options (like default ones: "published", "draft" and so on) and one of them is "project closed". I need to hide/exclude by default from post list in the backend ...
2
votes
1answer
1k views

$error = 404 after caught add_rewrite_rule

I have a rewrite rule as this to caught old urls from a previous version of the site: add_rewrite_rule( '(ninos|familia|hogar|mujeres|hombres)-[a-z-]+\.php', 'old_id_redirect.php', 'top' ); The ...
-2
votes
2answers
355 views

Post Format Status [closed]

I'm new at wordpress theme development. We inspected too many themes but didn't see any common culture at post format status. I wanted to ask how you're using this format, both front side and admin ...
0
votes
1answer
879 views

Function/filter or plugin to change post status based on custom field value

I am looking for a way to change the post status of some posts based on custom field value, from published to pending for example. How might this be possible? My solution: $post_ids = array( 1235, ...
0
votes
1answer
558 views

Change name of existing post status type

I've been googling around, and struggle to find any solutions on how to add custom post status. Id like to add 2 a new status called "unread" I've seen the codex explaining how to register a new ...
0
votes
1answer
249 views

wp.getPosts with status = 'trash' using node.js

I was wondering how to set the filter option for wp.getPosts. I want to get posts with a status of 'trash'. filter is currently blank, and returns all posts other than trash. I am using the xmlrpc ...
0
votes
1answer
387 views

Get publish post link?

Is there a way I can call a link so when clicked it publishes the post via the ID I provide? I have get_delete_post_link( $postID ) set fine, and would like to do the same to make a draft go to ...
0
votes
1answer
735 views

Admin - create custom post status and display above table

How do I create a custom post status and display it above the table of my custom post type? Example: All(9) | Published (7) | Custom_Status(2) I used the advance custom fields plugin to create a ...
0
votes
1answer
4k views

Template redirect template loaded, but the header 404

I've created a template redirect for a given url, ex.: test.com/test Test is page is not exists, i'm just checking the url from query_vars, if its match, i load the template with include(file.php);...
0
votes
1answer
718 views

418 header status, I'm a teapot [closed]

I'm just backing up a clients via ftp site prior to working on it, when suddenly all urls are returning an error page with the header status being 418. A quick Google finds that this was created for ...
0
votes
1answer
87 views

Show 'add comment' link for status updates in Twenty Thirteen

I have WP 3.6 running on my server. After playing around with it, I noticed that it's not very intuitive to add comments to a status update; Guess how? After some thought, I have decided I would ...
0
votes
1answer
61 views

Identify and display the fact that user is admin next to username in comment section

For all users to see. Not only the admin in cause. Also I am using a plugin called simple user ranking for displaying the user rank which is calculated for the number of comments posted, so I need to ...
1
vote
0answers
605 views

Restrict edit, but allow preview for custom post status

I am developing a Wordpress site with Edit Flow plugin, so I can create custom post statuses to manage author and contributor posts more easily. So I have created custom post status and I've got ...
1
vote
0answers
190 views

Wordpress capabilities on pending post status

I have user with contributor user role. In default if you publish article as contributor you can only view it and you can't delete or edit it. But when you submit new post for review, you can do all ...
1
vote
1answer
122 views

All, published and pending order

On the list tables of the administration panels, I want to change the order of the filters on top of the table. What I want: Pending Published All I tried to act on a line from the "wp-list-table" ...
2
votes
1answer
170 views

How do I batch create revisions of all posts?

I cleaned up an old-site from pasted tags, manually created lists, etc, and I'd like to keep the old posts as "revisions", so we can easily "compare" with the old posts and retrieve/revert the ...
3
votes
3answers
8k views

How to check if page has status published

How to check if page id(SomeID) is actually published?
2
votes
1answer
727 views

How do I limit the status options for bulk/quick edit to only Published and Draft?

For my custom post type, I only want to have "Published" and "Draft" as the available options in the bulk edit and quick edit screens, i.e. I tried hooking on to the filter ...
6
votes
1answer
3k views

How to change “Draft” string for status of custom post type to “Unavailable”?

ANSWER MOD: just an important mod to the chosen answer: // check if you actually have drafts; also avoids extra '|' separator if (isset($views['draft'])) { // 'Drafts' should be added (and come ...
2
votes
1answer
743 views

add filter to “quick edit menu” in wordpress admin

i am currently working on a wordpress plugin. the plugin includes a database table that being update every time a post is being created, edited or deleted with the data of that post. one of the ...
6
votes
1answer
7k views

How to display the status of users (online - offline) in archive.php

I am using the code the user status How to check if a user (not current user) is logged in?. On page profile of the author it works well (thank you guys). But if I put on the archive page, at the ...
0
votes
2answers
2k views

Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

I want to remove the entire section that says Save Draft, Preview and Status: Draft and Visibility: Public. I want to not show it. Its ok if it is still fuctional. Attached is the part I do not want ...
1
vote
1answer
37 views

How to integrate blog status?

I want to add a "status" to my wordpress blog. My definition of status is a piece of text that say something about the blog that could be changed every day or not changed in month and completely ...
1
vote
1answer
410 views

Show user info in a hovercard [closed]

I whant to display user info in a hovercard. I use a jquery plugin to for the hovercard. I call my file like this <?php include 'includes/tooltip.php'; ?> and this is my code from tooltip.php. &...
22
votes
2answers
14k views

How to check if a user (not current user) is logged in?

I need to display the online status (online/offline) for each author page (custom author page template). is_user_logged_in() only applies to the current user and I can't find a relevant approach ...
1
vote
2answers
957 views

How to change post status from frontend?

I'd like to add the posts in my loop the ability to toggle them between different post statuses (e.g. publish/draft). What's the best way to do it? Thanks in advance!
1
vote
1answer
1k views

Allow users mark posts as “complete”?

Any search keyword suggestions to help would be appreciated - not sure how best to describe this query :) I have a custom post type "module". I have ~300+ modules in my install. I have ~100+ ...
5
votes
2answers
5k views

Turn Off Automatic Trash Deletion?

I have a client who wants to use the trash feature, but keep items in there indefinitely (I have no idea why, but they insist on it). From reading this codex article on the trash status, I see that ...