All I can think is to process the posts at an earlier stage with a Core hook. This is crude, of course, but:
function hack_the_post($posts) {
foreach ($posts as $p) {
$p->post_content .= ' I added this';
}
return $posts;
}
add_action('the_posts', 'hack_the_post');
It is a bit energy intensive but so long as your plugin/theme uses more or less standard core functions it should work.
Related Posts:
- Filter by custom field in custom post type on admin page
- Media library – Limit images to custom post type
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- Filter for “get_post_type_archive_link()”
- Archive filter disappears on no results?
- Remove “Get Shortlink” button in admin of custom post type
- Add $more_link_text parameter to the_excerpt()
- Modifying date filter on admin page for custom post type to link to custom field
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Validate custom fields before save using WordPress Rest API
- How to: Display ACF [fields] on Custom Post Types Utilising WordPress ‘Hooks’? [closed]
- the_content() not outputting anything (Advanced Custom Fields)
- How to add a post slug to a url?
- the_content filter on some post types only not working
- Filter Posts from the Main Query
- How can I add a filter to a particular post format?
- Is there any way to get list of all possible filter hooks for all post types?
- How can I remove filters from custom post types?
- sortable columns for multiple custom post types not working
- ACF for custom post type archive pages: which hook to use?
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- Catch and display error on save_post action
- Query filter by value in meta_value array
- Best way to fix bad count on All | Mine | Published
- Store a value in global scope after init hook is fired
- Dynamic page for nav items used as filters
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- Filter posts by their related field’s custom field
- Grouping and paging CPT events by month with custom field date
- Adding Information To All Posts Screen
- using ACF datepicker to filter posts on a page
- Hook only specific post type
- Filter page ID outside the loop and order
- Change CPT Edit Target Link for Admin List
- Custom post type template not loading from plugin
- How can I filter records in a custom post type list in the admin based on the ACF field in the post that contains the current user?
- How do I add a filter to my custom post type archive page?
- Post Content, Special Characters and Filters
- Displaying custom taxonomy in the admin list of a custom post type
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- filter custom post type by meta key in dashboard
- Categories of custom taxonomy don’t show any posts
- Add custom ID to CPT posts only create not update
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- WP_Query to select custom post type with Advanced Custom Fields (ACF) date
- Bulk Update Custom Fields for Custom Post Types
- ACF Field on CPT Slug
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- How to Filter custom post type by taxonomy?
- WP_Query order by custom field, then randomly order some of results
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- ACF Values Don’t Show After Import Unless I Edit/Update Post
- Filter term taxonomy metabox in custom post type
- creat filter with wp_query
- Troubles with acf/save_post and WP_Query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Query custom post type with ACF Date
- custom post type WYSIWG removes paragraphs when displayed
- Stuck in Order by more then one
- Custom Post Type + ACF and performance [closed]
- Meta Query Not Returning Output Despite Having Matching Values
- How can I made custom taxonomies relationship?
- ACF From & To Date Validations
- WooCommerce sort products by the actual product width(not the shipping width)
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- How to change the post type a theme shows by default?
- How to render a custom post type template with custom fields using shortcode
- Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
- Limit number of custom posts per taxonomy
- filter custom post in rest api with custom function
- CPT archive admin menu label
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Content vs Template on custom post
- Add content as soon starts
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Order Custom Post Type by Custom Field Value
- Sort and filter custom post type posts by custom taxonomy
- Versioned Custom Post Type (Not the same as revisions)
- Retrieve custom field from Contact Form 7 [closed]
- Query Custom Post Type Taxonomy term with multiple parameters
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- How to query WordPress posts bycustom field with a max characters’ length
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- The loop seems stuck to a single (now deleted) post
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Adding the_content() in custom template email
- Filtering posts list table
- How to update post meta on uploaded image from a custom form?
- Custom filter function not working with Custom post type
- How to group posts and get a mixed posts and groups view?
- Categories filtering in new post
- Custom Post Types vs. Advanced Custom Fields (with Repeater Field add-on)
- Is it better to use filter for the_content in archive pages?
- Multiple Frontend Filters Using Advanced Custom Fields
- How to use manage_$post_type_posts_columns with underscore in post type?
- Integrate Custom Post Type Events into Calendar
- How does the filter post_updated_messages work?
- Specific routing for CPT