PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/logokingdom.online/wp-content/plugins/custom-content-portfolio/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/logokingdom.online/wp-content/plugins/custom-content-portfolio/uninstall.php

<?php

/**

 * Plugin uninstall file.

 *

 * @package    CustomContentPortfolio

 * @author     Justin Tadlock <justintadlock@gmail.com>

 * @copyright  Copyright (c) 2013-2017, Justin Tadlock

 * @link       https://themehybrid.com/plugins/custom-content-portfolio

 * @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

 */



// Make sure we're actually uninstalling the plugin.

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) )

	wp_die( sprintf( __( '%s should only be called when uninstalling the plugin.', 'custom-content-portfolio' ), '<code>' . __FILE__ . '</code>' ) );



/* === Delete plugin options. === */



// Remove pre-1.0.0 options.

delete_option( 'plugin_custom_content_portfolio' );



// Remove 1.0.0+ options.

delete_option( 'ccp_settings'        );

delete_option( 'ccp_sticky_projects' );



/* === Remove capabilities added by the plugin. === */



// Get the administrator role.

$role = get_role( 'administrator' );



// If the administrator role exists, remove added capabilities for the plugin.

if ( ! is_null( $role ) ) {



	// Remove pre-1.0.0 caps.

	$role->remove_cap( 'manage_portfolio'       );

	$role->remove_cap( 'create_portfolio_items' );

	$role->remove_cap( 'edit_portfolio_items'   );



	// Taxonomy caps.

	$role->remove_cap( 'manage_portfolio_categories' );

	$role->remove_cap( 'edit_portfolio_categories'   );

	$role->remove_cap( 'delete_portfolio_categories' );

	$role->remove_cap( 'assign_portfolio_categories' );



	$role->remove_cap( 'manage_portfolio_tags'       );

	$role->remove_cap( 'edit_portfolio_tags'         );

	$role->remove_cap( 'delete_portfolio_tags'       );

	$role->remove_cap( 'assign_portfolio_tags'       );



	// Post type caps.

	$role->remove_cap( 'create_portfolio_projects'           );

	$role->remove_cap( 'edit_portfolio_projects'             );

	$role->remove_cap( 'edit_others_portfolio_projects'      );

	$role->remove_cap( 'publish_portfolio_projects'          );

	$role->remove_cap( 'read_private_portfolio_projects'     );

	$role->remove_cap( 'delete_portfolio_projects'           );

	$role->remove_cap( 'delete_private_portfolio_projects'   );

	$role->remove_cap( 'delete_published_portfolio_projects' );

	$role->remove_cap( 'delete_others_portfolio_projects'    );

	$role->remove_cap( 'edit_private_portfolio_projects'     );

	$role->remove_cap( 'edit_published_portfolio_projects'   );

}