$ curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
$ sudo yum update
$ sudo ACCEPT_EULA=Y yum install -y msodbcsql mssql-tools unixODBC-devel
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
import { Component, ChangeDetectorRef } from '@angular/core'; | |
import { Platform, AlertController } from '@ionic/angular'; | |
import { InAppPurchase2, IAPProduct } from '@ionic-native/in-app-purchase-2/ngx'; | |
const PRODUCT_GEMS_KEY = 'devgems100'; | |
const PRODUCT_PRO_KEY = 'devpro'; | |
@Component({ | |
selector: 'app-home', |
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
vue build | |
npx cap sync | |
npx cap update | |
npx cap open android | |
npm install -g cordova-res | |
cordova-res android --skip-config --copy | |
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 | |
/** | |
* Order product collections by stock status, instock products first. | |
*/ | |
class iWC_Orderby_Stock_Status | |
{ | |
public function __construct() | |
{ |
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
add_action( 'elementor/query/eserlerQuery', function( $query ) { | |
$query->set('tax_query', $taxquery); | |
$postsID=get_post_meta(get_the_ID(),'karma_eserler'); | |
$postIdArray=$postsID[0]; | |
$postIdArray=((!isset($postIdArray) || empty($postIdArray)) ? array(-1) : $postIdArray); | |
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
add_filter('body_class','add_role_to_body'); | |
function add_role_to_body($classes) { | |
$current_user = new WP_User(get_current_user_id()); | |
$user_role = array_shift($current_user->roles); | |
$classes[] = 'role-'. $user_role; | |
$classes[] = !is_user_logged_in() ? 'not-logged-in' : '' ; | |
return $classes; | |
} |
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 | |
/* | |
Plugin Name: Convert Custom Taxonomy to Custom Post Type | |
Plugin URI: N/A | |
Description: A plugin to convert a Custom Taxonomy to a Custom Post Type and transfer associated metadata. | |
Version: 0.1 | |
Author: Strap1 | |
Author URI: http:/www.hiphopinenglish.com | |
/** Convert Taxonomy '%name%' to CPT '%name%' **/ |
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( | |
'rest_api_init', | |
function () { | |
register_rest_route('emin', '/city', array( | |
'methods' => 'GET', |
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
// Add to your theme's functions.php file. De-queues Select2 styles & scripts. Useful to keep Boostrap form control formatting | |
/** | |
* Remove Woocommerce Select2 - Woocommerce 3.2.1+ | |
*/ | |
function woo_dequeue_select2() { | |
if ( class_exists( 'woocommerce' ) ) { | |
wp_dequeue_style( 'select2' ); | |
wp_deregister_style( 'select2' ); |