ADDENDIO_FREEMIUS_ID, 'slug' => 'addendio', 'public_key' => ADDENDIO_FREEMIUS_PK, 'is_premium' => false, 'has_addons' => false, 'has_paid_plans' => false, 'menu' => array( 'slug' => 'awppt_addendio_settings', 'support' => false, 'parent' => array( 'slug' => 'options-general.php', ), ), ) ); } return $add_fs; } // Init Freemius. add_fs(); //===================================================================================== // / FREEMIUS //===================================================================================== // Make sure that wp_get_current_user function is available if(!function_exists('wp_get_current_user()')) { include(ABSPATH . 'wp-includes/pluggable.php'); } // Plugin Folder Path if ( ! defined( 'AWPPT_PLUGIN_DIR' ) ) { define( 'AWPPT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); } if ( is_admin() && current_user_can( 'administrator' ) ) { require_once AWPPT_PLUGIN_DIR . 'includes/awppt-functions.php'; } // Plugin Folder URL if ( ! defined( 'AWPPT_PLUGIN_URL' ) ) { define( 'AWPPT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); } // Images Folder URL if ( ! defined( 'AWPPT_PLUGIN_IMAGES_URL' ) ) { define( 'AWPPT_PLUGIN_IMAGES_URL', plugin_dir_url( __FILE__ ).'assets/images/' ); } // Admin Folder URL if ( ! defined( 'AWPPT_ADMIN_FOLDER' ) ) { define( 'AWPPT_ADMIN_FOLDER', get_admin_url()); }