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
- How to enqueue scripts on custom post add/edit pages?
- remove custom post type permalink
- Getting custom taxonomy from custom post type
- Sort search results by post type
- Filter next_post_link() and previous_post_link() by meta_key?
- How to change “Draft” string for status of custom post type to “Unavailable”?
- Automatically fill custom field value on post publish/update
- Most efficient way to search for values from CPT in Post content
- Make permalinks based on an ACF-field
- Title_save_pre – Simple problem that u know for sure
- List events by month
- Image size filtering in Media uploader according to custom post type
- Use Custom Post Type as Custom Field
- Hooking into wp_export filter for custom post type [closed]
- Custom Post Row Actions
- why does the add_action(‘the_content’) overwrite my page
- Pull image from ACF field in a Custom Post Type
- wp_update_post based function works on existing posts, but not new posts
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Custom Blog Post Listing in Genesis Sample Child Theme
- Problem with WordPress query on page using custom fields
- Filtering WP_Query
- 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?
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- Filter term taxonomy metabox in custom post type
- Troubles with acf/save_post and WP_Query
- Query custom post type with ACF Date
- CPT archive admin menu label
- Order Custom Post Type by Custom Field Value
- Loop filtering Custom Post Types and/or Categories
- How to use manage_$post_type_posts_columns with underscore in post type?
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Adavnced custom fields relationship query plus query inside
- Can I display custom post types in home.php or need page template?
- wp_insert_post wrong post type [closed]
- Custom post type showing same Post on all Pages
- How check if a post is saved from backend or frontend?
- Before saving post hook
- How to filter url on post submission?
- meta query not retrieving posts
- Modify a plugin function output from another plugin
- Custom Taxonomy Filter Issues
- Filter search posts by post meta?
- Modifying search results based on post_type
- Remove filter and view options from custom post type edit screen
- Limiting actions only to edit.php page for specific custom post type
- Custom front-end form for adding post – Category problem
- Using publish_{custom-post-type} hook for custom post type to update meta doesn’t work
- Is there any filter to add a custom attribute to the tag in admin panel?
- Show custom post type event if current day using ACF
- If ACF Post Object post has custom taxonomy term…
- Changing default admin column sorting to an ACF Date Picker field
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- Help Adding filter to Add Media button for custom post type
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- save_post affect creation and deletion
- Enable shortcodes on custom post type
- How to add content with a filter when there’s no content in the editor
- Creating adminable dynamic filtering on custom post type
- Add class to all parent elements inside the_content
- Restrict a filter to a custom post type. Am I doing this right?
- How to query the content of a specific custom post type?
- Create action running on trashed_post hook to modify post_meta value
- ACF – Query relationship without ID
- Redirect drafted post of custom post type to URL?