[wp-trac] [WordPress Trac] #35385: Able to get raw content by calling get_the_archive_description
WordPress Trac
noreply at wordpress.org
Fri Oct 11 13:55:53 UTC 2019
#35385: Able to get raw content by calling get_the_archive_description
-------------------------+-----------------------
Reporter: wido | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------+-----------------------
Comment (by wido):
Instead of context I thought to introduce a boolean parameter which simply
return the raw version of the description.
A filter has been added to be able to filter the description before it's
returned.
I think a boolean introduce less complexity than a string since it's just
a toggle action.
More over, I guess we could introduce a new function instead of passing a
parameter, something like `get_raw_post_type_archive_description` which
could be called by `get_the_post_type_description`, this way we do not
introduce parameters making the function more clear and simple to call.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35385#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list