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?
- Hook for post and page load
- How do you use a CPT as the default home page?
- How often do you need to register_post_type?
- With what hook can I address all posts from all custom post types when they are published?
- ACF Relationships in Custom Post Type Permalink
- Query by 2 values of a repeater ACF field
- Rendering Custom Post Types independently of the theme in use
- Get Custom Field Values by Another Custom Field in WordPress
- Custom Post Types not showing, custom WP_Query
- Create 3 Level Relations with ACF and WordPress
- Retrieve value of a category’s custom field
- 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
- Stuck in Order by more then one
- Content vs Template on custom post
- Query Custom Post Type Taxonomy term with multiple parameters
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Custom filter function not working with Custom post type
- How to group posts and get a mixed posts and groups view?
- Integrate Custom Post Type Events into Calendar
- How does the filter post_updated_messages work?
- Order post by date with ACF
- Querying & displaying custom post type into an existent page [closed]
- Post loop count is not in order
- How to inherit field value from parent post into in child / sub post
- REST filters only firing when I have a param set
- WordPress hook which triggers on post import
- How to use single.php for creating, reading and editing Custom Posts with ACF
- posttype and custom fields on multisite
- Custom fields not showing in custom post type
- Using WP meta query to show custom post types by a start and finish date
- Advanced custom field – posted fields from custom post type
- How to display author details in a custom post type in the wordpress backend?
- Add Content Column to Custom Post Type backend
- Show/hide posts and categories based on user meta
- Set up a WP Cron scheduled event to update calculated ACF field
- Show Post Revisions on front-end
- How to show Custom Post Type – Case Study using Shortcode & ACF
- Add custom post related by custom field to custom post
- Sort custom posts by date and then by taxonomy
- Plugin Development using classes – Public & Private Callbacks
- Issue to display Permalink (ACF Relationships in Custom Post Type )
- Taxonomy shows up twice on Custom Post Type
- Create 3 Levels of relations with WordPress
- Output all terms slugs for a loop filter
- Linking posts together with Advanced Custom Fields “both ways”
- Apply pre_get_posts to specific custom post type in the admin area
- How can I save a Custom Post Title and Slug with a Custom Field?
- Custom Field as Custom Post type element class
- Extracting Post ID and passing through as an attribute in a shortcode
- Filter between Custom Posts depending on meta_value
- add current-menu-item to multiple custom post types
- How to query posts by meta keys AND under specific category?
- how to load custom single.php?
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- Function that get ACF fields value before saving
- Custom Post-type not returning the right child_of
- Register a title automatically with a relationship field
- Add HTML before a specific div?
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Display ACF object field data using Elementor Custom Query
- Add post id to url instead of WordPress default -2 suffix
- ACF Pro simple Business Directory – Requesting assistance with created Templates and associated Functions.php Coding
- Advanced Custom Fields Custom Post Types Heirarchy