6.5. Lifecycle of Events
This section contains the lifecycle of events such as URL collection, crawling, and recrawling events. The lifecycle term refers to the order of application of, e.g., settings defined by you. The lifecycle of the events are given so that you can feel more comfortable while using the settings. If you know which setting is applied when, you have a deeper understanding of the settings and how to use them.
6.5.1. URL Collection Event
The list below shows the order of application of the settings when collecting post URLs from category pages.
Make a request to the target URL by adding Cookies and get the source code
Event: “After category request is made” (filters registered to this event)
Note
The rest of the items will not be executed if there is an error at this point, such as a “page not found” error or HTML parsing errors.
Find and replace in all post pages (in General Settings Page)
Resolve relative URLs existing in the source code
Event: “After category crawler is ready” (filters registered to this event)
Prepare featured images
Event: “When the category data is ready” (filters registered to this event)
6.5.2. Post Crawl and Recrawl Event
The list below shows the order of application of the settings when crawling and recrawling a post.
Note
Certain details are not saved when recrawling. For more information, please refer to Recrawling Section.
Make a request to the target URL by adding Cookies and get the source code
Event: “After post request is made” (filters registered to this event)
Note
The rest of the items will not be executed if there is an error at this point, such as a “page not found” error or HTML parsing errors.
Find and replace in all post pages (in General Settings Page)
Resolve relative URLs existing in the source code
Prepare pagination information by using the settings defined in Pagination Section
Remove unnecessary elements by using the selectors defined in Unnecessary Element Selectors
Event: “After post crawler is ready” (filters registered to this event)
Prepare post title
Prepare post excerpt
Prepare categories
Prepare publish date
Prepare custom short codes
Prepare list-type post information by using the settings under List Type Posts Section
Prepare post tag and meta information
Prepare custom post meta
Prepare taxonomies
Prepare and save media files
Save WooCommerce product details by using the settings defined under WooCommerce Section
Prepare the templates
- Post Title Template
- Post Excerpt Template
- List Item Template
- Remove links from short codes?
- Convert iframe elements to short code
- Convert script elements to short code
- Gallery Item Template
- Main Post Template
- Template Unnecessary Element Selectors
- Find and replace in post’s content
- Replace short codes that are defined by the plugin in all templates
Prepare the post data
Event: “When the post data is ready” (filters registered to this event)
Translate the selected contents (Translatable Fields) by using the selected translation service (Translate with)
Event: “After translation” (filters registered to this event)
Spin the selected contents (Spinnable Fields) by using the selected spinning service (Spin with)
Event: “After spinning” (filters registered to this event)