<?php
/**
 * Recommended plugins
 *
 * @package Newsever
 */

if ( ! function_exists( 'newsever_recommended_plugins' ) ) :

    /**
     * Recommend plugins.
     *
     * @since 1.0.0
     */
    function newsever_recommended_plugins() {

        $plugins = array(
            
            array(
                'name'     => esc_html__( 'Templatespare', 'newsever' ),
                'slug'     => 'templatespare',
                'required' => false,
            ),
            array(
                'name'     => esc_html__( 'Elespare', 'newsever' ),
                'slug'     => 'elespare',
                'required' => false,
            ),
            array(
                'name'     => esc_html__( 'Blockspare', 'newsever' ),
                'slug'     => 'blockspare',
                'required' => false,
            ),
            array(
                'name'     => esc_html__( 'WP Post Author', 'newsever' ),
                'slug'     => 'wp-post-author',
                'required' => false,
            ),
            array(
                'name'     => esc_html__( 'Free Live Chat using 3CX', 'newsever' ),
                'slug'     => 'wp-live-chat-support',
                'required' => false,
            ),
            array(
                'name'     => esc_html__( 'AF Translate', 'newsever' ),
                'slug'     => 'af-translate',
                'required' => false,
            ),
            array(
                'name'     => esc_html__( 'AF Companion', 'newsever' ),
                'slug'     => 'af-companion',
                'required' => false,
            ) 
        );

        tgmpa( $plugins );

    }

endif;

add_action( 'tgmpa_register', 'newsever_recommended_plugins' );
