function mycred_load() { require_once myCRED_INCLUDES_DIR . 'mycred-remote.php'; require_once myCRED_INCLUDES_DIR . 'mycred-log.php'; require_once myCRED_INCLUDES_DIR . 'mycred-network.php'; require_once myCRED_INCLUDES_DIR . 'mycred-protect.php'; include_once myCRED_INCLUDES_DIR . 'mycred-update.php'; // Bail now if the setup needs to run if (is_mycred_ready() === false) { return; } require_once myCRED_INCLUDES_DIR . 'mycred-leaderboard.php'; require_once myCRED_INCLUDES_DIR . 'mycred-widgets.php'; // Add-ons require_once myCRED_MODULES_DIR . 'mycred-module-addons.php'; $addons = new myCRED_Addons_Module(); $addons->load(); $addons->run_addons(); do_action('mycred_ready'); add_action('plugins_loaded', 'mycred_plugin_start_up', 999); add_action('init', 'mycred_init', 5); add_action('widgets_init', 'mycred_widgets_init'); add_action('admin_init', 'mycred_admin_init'); add_action('mycred_reset_key', 'mycred_reset_key'); register_activation_hook(myCRED_THIS, 'mycred_plugin_activation'); register_deactivation_hook(myCRED_THIS, 'mycred_plugin_deactivation'); register_uninstall_hook(myCRED_THIS, 'mycred_plugin_uninstall'); add_action('in_plugin_update_message-mycred/mycred.php', 'mycred_update_warning'); }
function mycred_load() { // Check Network blocking if (mycred_is_site_blocked()) { return; } // Load required files require_once myCRED_INCLUDES_DIR . 'mycred-remote.php'; require_once myCRED_INCLUDES_DIR . 'mycred-log.php'; require_once myCRED_INCLUDES_DIR . 'mycred-network.php'; require_once myCRED_INCLUDES_DIR . 'mycred-protect.php'; include_once myCRED_INCLUDES_DIR . 'mycred-update.php'; // Bail now if the setup needs to run if (is_mycred_ready() === false) { return; } require_once myCRED_INCLUDES_DIR . 'mycred-widgets.php'; // Supported plugins require_once myCRED_PLUGINS_DIR . 'mycred-hook-affiliatewp.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-badgeOS.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-bbPress.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-buddypress-gallery.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-buddypress-links.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-buddypress-media.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-buddypress.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-contact-form7.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-events-manager-light.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-gd-star-rating.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-gravityforms.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-invite-anyone.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-jetpack.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-marketpress.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-sharethis.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-simplepress.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-woocommerce.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-wp-favorite-posts.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-wp-polls.php'; require_once myCRED_PLUGINS_DIR . 'mycred-hook-wp-postratings.php'; // Add-ons require_once myCRED_MODULES_DIR . 'mycred-module-addons.php'; $addons = new myCRED_Addons_Module(); $addons->load(); $addons->run_addons(); do_action('mycred_ready'); add_action('plugins_loaded', 'mycred_plugin_start_up', 999); add_action('after_setup_theme', 'mycred_after_setup_theme', 50); add_action('init', 'mycred_init', 5); add_action('widgets_init', 'mycred_widgets_init'); add_action('admin_init', 'mycred_admin_init'); add_action('mycred_reset_key', 'mycred_reset_key'); register_activation_hook(myCRED_THIS, 'mycred_plugin_activation'); register_deactivation_hook(myCRED_THIS, 'mycred_plugin_deactivation'); register_uninstall_hook(myCRED_THIS, 'mycred_plugin_uninstall'); add_action('in_plugin_update_message-mycred/mycred.php', 'mycred_update_warning'); }