Support » Plugin: Archived Post Status » Rename archived

  • Resolved deb


    I am using it on woocommerce, so instead of Archived label, can we rename it like currently unavailable ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frankie Jarrett



    Yes, if you want to change the “Archived: <product name>” on the front-end, you can just use the the_title filter. Something like this should work (untested):

    add_filter( 'the_title', function ( $title ) {
    	return preg_replace( '/^Archived:/', 'Currently Unavailable:', $title );
    }, 11 );

    Note: By default, Archived products only appear on the front-end for logged-in users. If you want normal visitors to your site to still see them, you will need to add the filters described in the FAQ, titled: Can I make Archived posts appear on the front-end for all users?

    Lawrence Eagles


    Hi awesome plugin,
    But your code didn’t seem to change the archived. I mean in the small drop down in the quick edit menu I still see archived and that is what is also seen beside the post.

    I would love it to be changed from archived to resolved. Please a working hook would be invaluable.

    Awesome plugin by the way!

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rename archived’ is closed to new replies.