AKT/DEAKT button in Dashboard

This topic contains 1 reply and 2 voices, and was last updated by towhid 9 years, 3 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
February 7, 2015 at 5:51 pm 36060
towhid Hello, Instead of the delete button in the usercreated posts dashboard, I want to have a aktivate or deactivate button. If the post is published, I want a Deactivate button that sets the post to a draft. If the post is a draft, I want an Activate button that sets the post as published again. So I would need to change this in the dashboard.php, but to what?:
<?php
                        if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
                            $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
                            ?>
                            <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('Are you sure to delete?');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
                        <?php } ?>
February 7, 2015 at 6:11 pm 36063
towhid towhid

Hello Joshi,

I am really sorry to say that we do not have this feature right now. If you need this feature urgent you can do code on your own or you can hire a developer.

Thank You 🙂

Viewing 1 Posts - 1 through 1 (of 1 total)