New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken aioseop_description filter #1468
Comments
Reported again by Marco via email: i use this filter: add_filter( 'aioseop_description', 'sfwd_description_comment_page_num' ); Unfortunately, it doesn't work anymore after the latest update |
SolutionLooking into the issue I found the following code modifications had to occur... Place the the Then apply truncate with the global variable Inside
|
Marco confirmed that for him, the problem occurs for a manually entered meta description (not being able to filter it). |
Possibly related to #1469 |
fix for aioseop_description filter #1468
@EkoJR I missed one problem with the filter code in PR #1470. That filter doesn't work for taxonomies because it's using get_post_meta. I believe you need to add get_term_meta for taxonomies. Note that SEO for taxonomies is only for AIOSEOP Pro. You can detect if you're in Pro by looking for the AIOSEOPPRO constant boolean. |
@wpsmort Looks like the initial filter still works. This is the 3rd truncate code though, which seemed to give you trouble. Let me know where any issues continue.
|
I have confirmed that the filter above works for taxonomies. I have added documentation on this filter here - https://semperplugins.com/documentation/truncate-manually-entered-seo-descriptions/ |
2.4.4 possibly broke the aioseop_description filter in some cases.
Reported here: https://wordpress.org/support/topic/apply_filters-aioseop_description/
We should try and reproduce this and determine under what conditions it would be the case.
I'd say at a minimum, it probably happens when there's a manually entered description.
Try and find anything moving the filter may have broken.
The text was updated successfully, but these errors were encountered: