Home Forums Plugin Support WP User Frontend Pro AKT/DEAKT button in Dashboard

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 4 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36060

    joshi
    Member
    Post count: 18

    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 } ?>
    #36063

    towhid
    Participant
    Post count: 4505

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘AKT/DEAKT button in Dashboard’ is closed to new replies.