This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lane :build_ipa do | |
#Forcing Xcode stable version to prevent using beta | |
xcode_select("/Applications/Xcode.app") | |
# Build and archive the application | |
gym( | |
export_method: "app-store", | |
configuration: "Release", | |
scheme: scheme, | |
clean: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', 'stop_access_admin_profile' ); | |
function stop_access_admin_profile() { | |
global $pagenow; | |
if (isset($_REQUEST['user_id'])) { | |
$user_id = $_REQUEST['user_id']; | |
} else if (isset($_REQUEST['user'])) { | |
$user_id = $_REQUEST['user']; | |
} else { |