Support » Plugin: WPAdverts - Classifieds Plugin » Move RENEW button next to DELETE in Manage

  • Resolved lazyym

    (@lazyym)



    Hi Greg,

    Love the plugin as always, no major complaints. 🙂

    On several occasions now I’ve members say “Where are my ads?, How do I renew them”.

    Having to click the More button to see renew is kind of a pain. How do we move it next to the delete button so people don’t have to click More to see it?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, in your theme functions.php file add the code below it should move the button if you are using the default Payments module.

    
    add_action( "init", "my_init", 1000 );
    function my_init() {
      remove_action( "adverts_sh_manage_actions_more", "adext_payments_action_renew" );
      add_action( "adverts_sh_manage_actions_after", "adext_payments_action_renew" );
    }
    

    That removed the More and Renew button Greg.

    Plugin Author Greg Winiarski

    (@gwin)

    The “More” button should be hidden if there are no buttons shown after clicking it, please try this code instead, i tried it on my dev site and it seems to be working fine the renew button shows after “Delete”.

    
    add_action( "init", "move_renew_button", 1000 );
    function move_renew_button() {
        if( function_exists( "adext_wc_payments_action_renew") ) {
            remove_action( "adverts_sh_manage_actions_more", "adext_wc_payments_action_renew" );
            add_action( "adverts_sh_manage_actions_left", "adext_wc_payments_action_renew" );
        }
    
        if( function_exists( "adext_payments_action_renew" ) )  {
            remove_action( "adverts_sh_manage_actions_more", "adext_payments_action_renew" );
            add_action( "adverts_sh_manage_actions_left", "adext_payments_action_renew" );
        }
    }
    

    That did it. Thank you sir!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move RENEW button next to DELETE in Manage’ is closed to new replies.