In this repo you can find custom code examples to extend or modify how the Datafeedr plugins work.
- Download this repo.
- Go here WordPress Admin Area > Plugins > Add New > [Upload Plugin]
- Upload the
my-custom-code-main.zip
plugin. - Activate the My Custom Code plugin.
- Go here WordPress Admin Area > Plugins > Plugin Editor
- Select My Custom Code from the Select plugin to edit drop down menu.
- You will see a list of
require_once
statements and some will have//
in front. If you want to use one of the modules, remove the preceeding//
code.
Here's an example of some modules enabled and others not. In this example the first and last modules are enabled whereas the rest of the modules are disabled.
require_once 'modules/add-attribute-filter-to-admin-product-list.php';
//require_once 'modules/add-size-attribute-for-each-product.php';
//require_once 'modules/cloak-price-comparison-set-links.php';
//require_once 'modules/enable-product-update-feature-flag.php';
//require_once 'modules/exclude-specific-merchants-from-appearing-in-comparison-sets.php';
//require_once 'modules/limit-results-returned-by-comparison-set.php';
//require_once 'modules/normalize-merchant-attribute-names.php';
//require_once 'modules/prune-action-scheduler-actions-more-often.php';
//require_once 'modules/set-product-author-id-during-import.php';
//require_once 'modules/set-product-excerpt-equal-to-product-description.php';
require_once 'modules/sort-products-from-specific-merchants-last.php';
Here's a list of the modules included in this custom code plugin. You can activate or deactivate any of these modules at any time (see "How to use" above).
This module adds a new filter to the WordPress Admin Area > Products page which allows you to filter by an attribute value.
Adds size mapping for automatically adding size attributes to products.
Automatically clean up specific scheduled actions by hook and status.
Adds the ability to cloak affiliate links in your Comparison Sets.
Displays the date the product was last updated with pricing info.
Enabled the new Product Update feature flag. Learn more.
Exclude specific merchants from appearing in all of your Comparison Sets.
Limit the number of results displayed by a Comparison Set.
Modify merchant names before they are imported as product attributes.
Prune completed actions created by the Action Scheduler every day (instead of every 30 days) and allow up to 500 actions to be deleted at a time.
Set the product's Author ID during product import.
Set the products short description (excerpt) equal to this description
field if the shortdescription
is unavailable.
set-visibility-to-hidden-for-unavailable-products.php
Set the visibility for unavailable products to "hidden".
Set products from specific merchants to sort last on category pages.