X7ROOT File Manager
Current Path:
/home/notabjze/digitalcontentmentors.com/wp-content/plugins/smm-api/plugin-fw
home
/
notabjze
/
digitalcontentmentors.com
/
wp-content
/
plugins
/
smm-api
/
plugin-fw
/
ðŸ“
..
ðŸ“
assets
📄
init.php
(3.13 KB)
ðŸ“
lib
📄
smm-deactive-plugin.php
(1.34 KB)
📄
smm-functions.php
(46.33 KB)
📄
smm-plugin-registration-hook.php
(780 B)
📄
smm-plugin.php
(5.64 KB)
📄
smm-woocommerce-compatibility.php
(25.78 KB)
ðŸ“
templates
Editing: init.php
<?php /** * This file belongs to the SMM Plugin Framework. * Author: Yith * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ if ( ! defined ( 'ABSPATH' ) ) { exit; } // Exit if accessed directly if ( ! function_exists ( 'smm_maybe_plugin_fw_loader' ) ) { /** * smm_maybe_plugin_fw_loader * * @since 1.0.0 */ function smm_maybe_plugin_fw_loader ( $plugin_path ) { global $plugin_fw_data_smm, $plugin_upgrade_fw_data_smm; $default_headers = array ( 'Name' => 'Framework Name', 'Version' => 'Version', 'Author' => 'Author', 'TextDomain' => 'Text Domain', 'DomainPath' => 'Domain Path', ); $plugin_path = trailingslashit( $plugin_path ); $framework_data = get_file_data( $plugin_path . 'plugin-fw/init.php', $default_headers ); $plugin_fw_main_file = $plugin_path . 'plugin-fw/smm-plugin.php'; if ( ! empty( $plugin_fw_data_smm ) ) { foreach ( $plugin_fw_data_smm as $version => $path ) { if ( version_compare ( $version, $framework_data[ 'Version' ], '<' ) ) { $plugin_fw_data_smm = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file ); } } } else { $plugin_fw_data_smm = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file ); } if ( ! defined( 'SMMS_PLUGIN_FW_VERSION' ) ) { $keys = array_keys( $plugin_fw_data_smm ); $version = empty( $plugin_fw_data_smm ) ? '1.0.0' : array_pop( $keys ); define( 'SMMS_PLUGIN_FW_VERSION', $version ); } //Check for license & upgrade classes $upgrade_fw_init_file = $plugin_path . 'plugin-upgrade/init.php'; $framework_data = file_exists( $upgrade_fw_init_file ) ? get_file_data( $upgrade_fw_init_file, $default_headers ) : $framework_data; $plugin_license_path = $plugin_upgrade_path = $plugin_path . 'plugin-upgrade'; if( ! file_exists( $plugin_upgrade_path ) ){ //Check the path for OLD plugin FW if( file_exists( $plugin_path . 'plugin-fw/licence' ) ){ $plugin_license_path = $plugin_path . 'plugin-fw/licence'; $plugin_upgrade_path = $plugin_path . 'plugin-fw/'; } else { $plugin_upgrade_path = $plugin_license_path = false; } } if( file_exists( $plugin_upgrade_path ) ){ if( ! empty( $plugin_upgrade_fw_data_smm ) ){ foreach( $plugin_upgrade_fw_data_smm as $version => $files ){ if( version_compare ( $version, $framework_data[ 'Version' ], '<' ) ){ $plugin_upgrade_fw_data_smm = array ( $framework_data[ 'Version' ] => smm_get_upgrade_files( $plugin_license_path, $plugin_upgrade_path ) ); } } } else { $plugin_upgrade_fw_data_smm = array ( $framework_data[ 'Version' ] => smm_get_upgrade_files( $plugin_license_path, $plugin_upgrade_path ) ); } } } }
Upload File
Create Folder