Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Adding filters for SQL statements listing posts while preparing CDN. #562

Open
wants to merge 1 commit into
base: v0.9.6.x_wip
Choose a base branch
from

Conversation

olitooni
Copy link

When preparing the CDN and running such functions as Modify attachment URLs or Upload attachments these new filter hooks provide a way for manipulating the SQL statement fetching the posts. For instance adding more post types that might contain attachments moved to the CDN storage.

Filters

  • w3tc_cdn_import_library_sql - Getting posts to import attachments to Media Library
  • w3tc_cdn_rename_domain_posts_sql - Getting posts that might contain posts with domain to be replaced
  • w3tc_cdn_import_posts_count_sql - Counting affected posts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant