@debendra,
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?
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.