Getting Started

Ask a question

Introduction

FavPress is provided as additional plugin and should be added as dependency to your theme or plugin.

Installation

Download TGM Plugin Activation

Using TGM Plugin Activation you can easily depend on other plugins within your own theme or plugin.
  1. Download latest version
  2. Extract the ZIP
  3. Copy the file class-tgm-plugin-activation.php into your theme or plugin

Configure TGM and add FavPress as dependency

Add the following code into your functions.php:

    require_once 'class-tgm-plugin-activation.php';

    add_action('tgmpa_register','my_prefix_register_required_plugins');

    function my_prefix_register_required_plugins(){
        $plugins = array(
            array(
                'name'     => 'FavPress',
                'slug'     => 'favpress',
                'source'   => 'https://apps.moewe.io/favpress/stable/favpress.zip',
                'required' => true
            ),
        );

        $config = array(
            'id'           => 'my_prefix-tgm',                 // Unique ID for hashing notices for multiple instances of TGMPA.
            'default_path' => '',
            'menu'         => 'tgmpa-install-plugins',
            'parent_slug'  => 'themes.php',
            'capability'   => 'edit_theme_options',
            'has_notices'  => true,
            'dismissable'  => true,
            'dismiss_msg'  => '',
            'is_automatic' => true,
            'message'      => ''
        );
        tgmpa($plugins, $config);
    }

Note: Please replace my_prefix with your own.

What's next?

Start using FavPress building