Support » Plugin: Post Expirator: Automatically Unpublish WordPress Posts » How to increase Year dropdown

  • Dear Mr Axelsen,

    thank you a lot for this useful and well coded plugin.
    I especially want to praise that your code is neatly indented, which increases the readability extremely. As a web developer, to my chagrin, I often have to deal with third-party coding that are not properly indented or whose code is difficult to understand because it isn’t well documented or every function is encapsuled in a class with autoloading. So finding out which function is called and how could I properly modify it becomes a time consuming pain in the ass. So I am really glad that this is not the case with your plugin

    Actually I have the problem that your plugin will only show the next 7 years from the actual year for setting the expiration date.
    But I need 10 years.

    Of course I could change the for loop in post-expirator.php on line 338 but that’s a bod idea because if there is a update for any reason this modification will be overridden and would have to change it again and again

    I didn’t see a hook which I could use to alter to enlarge the for loop.
    So is there a update safe way I can enlarge the for loop for the year dropdown?

    with collegial greetings from Germany

    Alexander Behling

  • The topic ‘How to increase Year dropdown’ is closed to new replies.