PMC Apple News
Plugin Path
Save this plugin into: wp-content/themes/vip/pmc-plugins/
How to install plugin
Put these lines in your theme's functions.php file.
pmc_load_plugin( 'pmc-apple-news', 'pmc-plugins' );Overview
This plugin is responsible for adding customizations to VIP shared Apple News plugin 1.2.6 ( www/wp-content/themes/vip/plugins/apple-news-1.2.6). The original plugin source can be found at this github (opens in a new tab) repo.
How it works
- Add any hooks and/or filters in order to change the settings and/or features for the Apple News section in wp-admin.
- Also can be used to add hooks to filter content , title , excerpt etc that gets sent to Apple News
Buy Now Button Filters
This plugin handles the output of the buy now button.
To customize the default output, the following filters are available:
-
pmc_apple_news_buy_now_title_component- Filters the Apple News Component array for the product title. -
pmc_apple_news_buy_now_price_component- Filters the Apple News Component array for the pricing. This component contains three sub-components: price, original price, and discount (percentage). -
pmc_apple_news_buy_now_button_component- Filters the Apple News Component array for the button element.