Skip to content

Extensions for the Yotpo Reviews for WooCommerce plugin

Notifications You must be signed in to change notification settings

hxii/YRFW-Extensions

Repository files navigation

YRFW-Extensions

Extensions for the Yotpo Reviews for WooCommerce plugin

Available Extensions

  • YRFW Dashboard - Shows Yotpo metrics in a glance.
  • YRFW Debug Page - Allows (securely) accessing basic debug information to yotpo support.
  • YRFW Export Products - Export your product catalog in a Yotpo-import-ready format.
  • YRFW Rich Snippets - Outputs rich snippet markup on product pages.
  • YRFW Site-level Rich Snippets - Use [yrfw_site_rich_snippet] shortcode to output site-level rich snippets. Optional hide argument to not display the text.

Installing Extensions

Just place the extension in the /extensions folder inside YRFW and you should be good to go!

Writing Extensions

Extensions are fairly simple at this point and require a couple of things:

  1. Add the required methods and properties (below) to the class.
  2. Put the file in the extensions folder.

Extension Meta

protected $extension_meta = [
    'extension_name'        => 'Dashboard',
    'extension_description' => 'Your Yotpo stats in a glance',
    'extension_version'     => '0.1',
    'extension_author'      => 'Paul Glushak',
    'extension_url'         => 'https://github.com/hxii/YRFW-Extensions',
];

Registering the Extension

public function register_extension() {
    $extension_handler = YRFW_Extensions::get_instance();
    $extension_handler->register_extension( $this->extension_meta );
}

About

Extensions for the Yotpo Reviews for WooCommerce plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages