Looking at the filter:
$post_content = apply_filters( 'wpseo_pre_analysis_post_content', $post->post_content, $post );
it would be a matter of adding your fields content to string being analyzed.
You have to do the get_field() part right, this is untested:
add_filter( 'wpseo_pre_analysis_post_content', 'filter_yoasts_wpse_119879', 10, 2 );
function filter_yoasts_wpse_119879( $content, $post )
{
$fields = get_field( 'name', $post->ID );
return $content . $fields;
}
As noted by kaiser in comments, the get_field() function is not reliable. If it is a relatively simple field, it’s better to stick to get_post_meta.
Related: Where do I put the code snippets I found here or somewhere else on the web?
Related Posts:
- add_action(), add_filter() before or after function
- Trouble understanding apply_filters()
- What is the very earliest action hook you can call?
- wp_headers vs send_headers. When to use each?
- How many filter/action hooks are healthy?
- Earliest hook to reliably get $post/$posts
- What does (10, 2) mean when used with add_filter
- Valid characters for actions, hooks and filters
- Is it possible to use object in add_action?
- Store source permalink on XMLRPC calls
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- How do I know if author field was changed on post save?
- Using hooks to place content in theme dynamically
- Search with filters and title
- PHP5, Inheritance, Singleton – action & filter hook limitations
- Please explain me what the do_action does
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- add_action uses ‘echo’ add_filter uses ‘return’, why?
- changing variable through filters or action hooks
- Too many actions/filters!
- Making a class available via actions filters
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- How to get current action?
- Conditionally call add_action depending on post_type?
- how to change appearence of the content of default post list columns?
- How To Get User Data in Callback Function for pre_user_nicename?
- What’s the best way to split admin-only functionality in the theme’s functions.php file?
- Filter list by a unique meta value dilemma
- return values from hooks do_action and apply_filters, which is better
- How to get all the predefined do_action() calls from an active theme
- Is it possible to track down Actions and Filters?
- When to use actions and when to use filters
- Yoast SEO hooks overriding themselves
- Return a custom value in a function added to an action hook
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- How to call a function or method that is Namespaced using another plugin
- How to change currency programmatically on creating order action?
- add filter login_redirect does not contain original requested redirect
- get_header and hook avoid normal call
- Removing an action, or dequeueing style – Both not working
- How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?
- Replace a word with a word in the URL string
- Is there a filter called ‘network_admin_init’?
- How to add ‘total’ value to custom column title on the posts list page
- Filter taxonomy admin pagination
- When to use add_action when registering/enqueuing scripts
- Are there actions or filters I can use for Ajax calls?
- Correct method of redirecting user login
- Shortcodes — Using add_action, add_filter in the shortcode
- How to properly modify WP Vary or any existing headers?
- Building a request processor for multi-page forms, etc using $_GET requests
- Customize title, description and focused keyword [closed]
- How to customize the “Insert/edit link” popup box?
- Proper after_setup_theme and wp_head cleanup
- How to allow code block in wordpress comments
- remove_action: how to access to a method in an child class?
- Filter for when the post is updated
- How can I specify the post status of an untrashed post?
- Filter get_page_by_path()
- Conflict calling an add_filter() twice
- Remove actions/filters that are set with create_function()
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- Alter existing page contents based on url
- Add/remove CRON action depending on variable
- How to access page variable inside action hook
- How to include add_filter() in a condition based on $post data
- Admin: how to make a custom list filter button send GET queryvars
- Use has_filter on comment_post
- Echo string in admin panel footer beside version no
- How to change default text for specific post type
- alternative to the_content filter
- How to pass a variable between filter/action functions?
- style_loader_tag not changing stylesheet to preload
- Adding link options in insert/edit link dialog window
- How to redirect a unique link based on login status
- Hook to change the site URL
- Hook to add content after date in post?
- add_action with associative array
- how to use apply filter for Class?
- How can I see exactly what arguments are being passed through a filter so that I may modify them?
- WordPress set featured image to first image of the post
- adding an action inside if condition not working
- Using add_filters() , apply_filter(), add_action() and do_action() in extending a plugin
- What action/filter can be used for modifying the page to be rendered?
- What problems could happen if I replaced add_filter and add_action with the function calling
- check, if any “add_action” function contains string XXXXXXXXX
- Custom search fields and AJAX support
- Adding to an array & passing it through do_action/apply_filters
- Hook into ‘when user logs in’ [persistent login]
- Custom registration field to SQL database
- Updating User Profile on Registration
- How would I remove an inline googleAPI font script in the the parent theme header.php?
- can’t output gray scaled image I’ve created using add_image_size
- ACF Load Field Groups Programmatically [closed]
- Conditionally including JS based on whether ACF field is set [closed]
- Can you call a filter hook by “add_action”?
- Add a filter conditionally based on frontpage
- Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields
- How to change content hash value, within the_block_template_skip_link action?
- How to use add_filter to add the extra data to existing array?