Black Friday: Up to 40% off all plans!

Offer automatically applied at checkout
Days
Hours
Minutes
Seconds

FAQs

Find answers to common questions and step-by-step solutions.

Glossary

An alphabetical list of terms and their definitions.​

Video Library

Discover our tutorials

Actions and Filters Deprecation Guide

Note: These documents refer to features and updates in the upcoming v5 release, which will be available soon. Some information may not apply to earlier versions. Stay tuned for the official launch announcement!

IN THIS ARTICLE
Learn how to prepare for Aggregator v5 by identifying deprecated v4 filters and actions, testing custom code, and ensuring a seamless migration.
Contents

Migrating from Aggregator v4 to v5 removes several actions and filters used in v4 for customizing feed imports and post processing. As of now, there are no direct alternatives to these hooks, which means any custom code that relies on them will no longer function. Below is a list of deprecated hooks and steps to help you migrate safely.

Deprecated Hooks

The following actions and filters from v4 have been deprecated in v5:

Core Plugin

Hook NameDescription
wprss_populate_post_dataModify post data during import
wprss_insert_post_item_conditionalsApply conditional logic to post imports
wprss_before_curl_execExecute custom code before the cURL request

Feed to Post

Hook NameDescription
wprss_ftp_post_argsModify post arguments before saving
wprss_ftp_post_metaAdjust metadata for imported posts
wprss_ftp_link_post_titleCustomize title linking behavior
wprss_ftp_post_content_filter_prioritySet priority for the content filter
wprss_ftp_converter_post_titleFix encoding issues in imported post titles
wprss_ftp_force_delete_by_sourceForce permanent deletion of posts by source
wprss_ftp_add_source_link_methodCustomize how source links are added
wprss_ftp_trimming_keep_tagsPreserve specific HTML tags during trimming

Templates

Hook NameDescription
wprss_et_allowed_tags_in_excerptsDefine which HTML tags are allowed in excerpts

Migration Steps

  1. Identify Custom Code: Locate any use of these hooks in your functions.php, custom plugins, or snippets.
  2. Test on Staging: Before migrating your live site to v5, create a staging or development copy. Install v5 and test all customizations relying on these hooks.
    • Why: With no v5 alternatives, this code will stop working, potentially disrupting feed imports or post handling.
  3. Assess Impact: Evaluate how the removal affects your site. Test feed imports, post creation, and displays to identify gaps left by these hooks.
  4. Remove Obsolete Code: Since no replacements exist, remove these hooks from your codebase. Rely on v5’s default behavior or explore manual workarounds (e.g., settings adjustments).
  5. Validate Thoroughly: After migrating on staging, ensure core functionality meets your needs without these customizations.

Potential Issues

Without alternatives, custom logic for feed processing, post formatting, or cleanup will cease, possibly altering how your site handles feeds. Thorough testing is critical to adapt to v5’s default functionality.

Recommendation

Test extensively on a staging environment before migrating to v5 on your live site. Remove outdated code and adjust workflows to align with v5’s built-in features, as no direct replacements are available at this time.

Feedback

Are you actively using any of the deprecated hooks or filters listed above?

If so, we’d really like to hear from you. Your feedback helps us understand which customizations matter most and informs whether we should consider reintroducing similar hooks or alternatives in future versions of Aggregator.

If a specific hook is critical to your workflow, please let us know using the form below.

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

Your Info

Name
Your email will only be used for communication related to this submission.

Custom Hooks

Which hooks are you using?*
Select all that apply:
How important are these hooks to your setup?*
Optional: share more about your use case and how the hook is used.

GIVE FEEDBACK

Was this article helpful?

Still stuck?

Find Your Perfect Plan

Answer a few questions, and we’ll recommend the best option for you!