// Exit if the file is accessed directly over web. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Filter current component id for the displayed user profile. * * @param int $component_id component id. * * @return int */ function mpp_current_component_id_for_user( $component_id ) { if ( mediapress()->is_bp_active() && bp_is_user() ) { return bp_displayed_user_id(); // that is displayed user id. } return $component_id; } add_filter( 'mpp_get_current_component_id', 'mpp_current_component_id_for_user' ); /** * Delete galleries for user on account spam/delete etc. * * @param int $user_id user id. */ function mpp_delete_galleries_for_user( $user_id ) { $query = new MPP_Gallery_Query( array( 'user_id' => $user_id, 'fields' => 'ids' ) ); $ids = $query->get_ids(); // Delete all galleries. foreach ( $ids as $gallery_id ) { mpp_delete_gallery( $gallery_id ); } } add_action( 'wpmu_delete_user', 'mpp_delete_galleries_for_user', 1 ); add_action( 'delete_user', 'mpp_delete_galleries_for_user', 1 ); add_action( 'make_spam_user', 'mpp_delete_galleries_for_user', 1 ); /** * Clear user gallery count meta when a new gallery is created or existing is deleted. * * @param int|MPP_Gallery $gallery numeric gallery id or object. */ function _mpp_clear_user_gallery_count( $gallery ) { $gallery = mpp_get_gallery( $gallery ); if ( ! $gallery ) { $user_id = get_current_user_id(); $components = array_keys( mpp_get_registered_components() ); } else { $user_id = $gallery->user_id; $components = $gallery->component; } $key = 'mpp-u-' . $user_id; // all gallery count. delete_user_meta( $user_id, $key . '-gallery-count' ); foreach ( (array) $components as $component ) { // component specific gallery count. delete_user_meta( $user_id, $key . '-' . $component . '-gallery-count' ); } } add_action( 'mpp_gallery_deleted', '_mpp_clear_user_gallery_count' ); add_action( 'mpp_gallery_created', '_mpp_clear_user_gallery_count' ); /** * Clear user media count meta when a new media is uploaded or existing is deleted. * * @param int|MPP_Media $media numeric media id or object. */ function _mpp_clear_user_media_count( $media ) { $media = mpp_get_media( $media ); if ( ! $media ) { $user_id = get_current_user_id(); $components = array_keys( mpp_get_registered_components() ); } else { $user_id = $media->user_id; $components = $media->component; } $key = 'mpp-u-' . $user_id; // all media count. delete_user_meta( $user_id, $key . '-media-count' ); foreach ( (array) $components as $component ) { // component specific media count. delete_user_meta( $user_id, $key . '-' . $component . '-media-count' ); } } add_action( 'mpp_media_deleted', '_mpp_clear_user_media_count' ); add_action( 'mpp_media_added', '_mpp_clear_user_media_count' ); /** * Plugin Name: Kirki PRO - Headlines & Divider Control * Plugin URI: https://themeum.com * Description: Headlines & divider control for Kirki Customizer Framework. * Version: 1.1 * Author: Themeum * Author URI: https://themeum.com/ * License: GPL-3.0 * License URI: https://oss.ninja/gpl-3.0?organization=Kirki%20Framework&project=control%20headline%20divider * Text Domain: kirki-pro-headline-divider * Domain Path: /languages * * @package kirki-pro-headline-divider */ defined( 'ABSPATH' ) || exit; if ( ! function_exists( 'kirki_pro_load_headline_divider_control' ) ) { /** * Load headline divider control. */ function kirki_pro_load_headline_divider_control() { // Stop, if Kirki is not installed. if ( ! defined( 'KIRKI_VERSION' ) ) { return; } // Stop, if Kirki PRO (bundle) is already installed. if ( defined( 'KIRKI_PRO_VERSION' ) ) { return; } // Stop, if Kirki Pro Headline Divider is already installed. if ( class_exists( '\Kirki\Pro\HeadlineDivider\Init' ) ) { return; } if ( ! function_exists( 'get_plugin_data' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $plugin_data = get_plugin_data( __FILE__ ); define( 'KIRKI_PRO_HEADLINE_DIVIDER_VERSION', $plugin_data['Version'] ); define( 'KIRKI_PRO_HEADLINE_DIVIDER_PLUGIN_FILE', __FILE__ ); require_once __DIR__ . '/vendor/autoload.php'; new \Kirki\Pro\HeadlineDivider\Init(); } add_action( 'plugins_loaded', 'kirki_pro_load_headline_divider_control' ); } GuildsVR https://guildsvr.com VRLFG Sun, 02 Jul 2023 12:55:00 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 https://guildsvr.com/wp-content/uploads/2022/06/cropped-GVRIcon-32x32.png GuildsVR https://guildsvr.com 32 32 Unleashing the Power of VR Battles: A New Era of Thrills and Competition https://guildsvr.com/unleashing-the-power-of-vr-battles-a-new-era-of-thrills-and-competition/ https://guildsvr.com/unleashing-the-power-of-vr-battles-a-new-era-of-thrills-and-competition/#respond Sun, 02 Jul 2023 12:54:58 +0000 https://guildsvr.com/?p=7195 https://guildsvr.com/unleashing-the-power-of-vr-battles-a-new-era-of-thrills-and-competition/feed/ 0 Pre-Release Preview: Unleash your Competitive Spirit in Thrilling Battles https://guildsvr.com/pre-release-preview-unleash-your-competitive-spirit-in-thrilling-battles/ https://guildsvr.com/pre-release-preview-unleash-your-competitive-spirit-in-thrilling-battles/#respond Mon, 26 Jun 2023 12:14:13 +0000 https://guildsvr.com/?p=7053 https://guildsvr.com/pre-release-preview-unleash-your-competitive-spirit-in-thrilling-battles/feed/ 0 GuildsVR: Revolutionizing Virtual Reality Gaming Connections https://guildsvr.com/guildsvr-revolutionizing-virtual-reality-gaming-connections/ https://guildsvr.com/guildsvr-revolutionizing-virtual-reality-gaming-connections/#respond Sun, 04 Jun 2023 13:38:51 +0000 https://guildsvr.com/?p=6330 https://guildsvr.com/guildsvr-revolutionizing-virtual-reality-gaming-connections/feed/ 0 Altair Breaker Released https://guildsvr.com/altair-breaker-released/ https://guildsvr.com/altair-breaker-released/#respond Thu, 18 Aug 2022 19:43:29 +0000 https://guildsvr.com/?p=5413 https://guildsvr.com/altair-breaker-released/feed/ 0 SteamVR Fest https://guildsvr.com/steamvr-fest/ https://guildsvr.com/steamvr-fest/#respond Mon, 18 Jul 2022 18:12:56 +0000 https://guildsvr.com/?p=5279 https://guildsvr.com/steamvr-fest/feed/ 0 Zenith: Removing Shards https://guildsvr.com/zenith-removing-shards/ https://guildsvr.com/zenith-removing-shards/#respond Wed, 13 Jul 2022 22:01:37 +0000 https://guildsvr.com/?p=5275 https://guildsvr.com/zenith-removing-shards/feed/ 0 Zenith: Steam Sale https://guildsvr.com/zenith-steam-sale/ https://guildsvr.com/zenith-steam-sale/#respond Thu, 23 Jun 2022 19:55:47 +0000 https://guildsvr.com/?p=4989 https://guildsvr.com/zenith-steam-sale/feed/ 0 Zenith: Oculus Sale https://guildsvr.com/zenith-oculus-sale/ https://guildsvr.com/zenith-oculus-sale/#respond Tue, 21 Jun 2022 09:36:16 +0000 https://guildsvr.com/?p=4880 https://guildsvr.com/zenith-oculus-sale/feed/ 0 Zenith: The Celestial Throne https://guildsvr.com/zenith-the-celestial-throne/ https://guildsvr.com/zenith-the-celestial-throne/#respond Mon, 20 Jun 2022 12:15:34 +0000 https://guildsvr.com/?p=4856 https://guildsvr.com/zenith-the-celestial-throne/feed/ 0