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
| /************ Name Shortcode *********/ | |
| function name_shortcode() { | |
| if ( ! function_exists( 'get_field' ) ) { | |
| return; | |
| } ?> | |
| <?php if ( get_field( 'first_name' ) ): ?> | |
| <?php the_field( 'first_name' ); ?><span> </span><?php the_field( 'last_name' ); ?><?php if(has_term((array('partners','associates','counsel','founding-partner-retired','judiciary','of-counsel')), 'attorney-group')): ?><span>, ESQ.</span > | |
| <?php endif; ?> | |
| <?php endif; ?> | |
| <?php } |
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
| SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' ENGINE=InnoDB;' ) | |
| FROM INFORMATION_SCHEMA.TABLES | |
| WHERE ENGINE = 'MyISAM' | |
| AND table_schema = 'database-name-here'; |
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
| /** | |
| * This code snippet removes JavaScript and CSS files loaded from WooCommerce if they are not necessary. | |
| * | |
| * Please test this on a staging copy of your website before putting this into the functions.php of your live website. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'my_remove_woo_assets', 99 ); | |
| function my_remove_woo_assets() { | |
| if ( function_exists( 'is_woocommerce' ) ) { // Check if Woo is installed. | |
| if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { // Only run on non-Woo pages. | |
| // Remove unnecessary stylesheets. |
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
| ** Install WP CLI on Windows | |
| curl -L -O https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && echo @ECHO OFF > wp.bat && echo php "%~dp0wp-cli.phar" %* >> wp.bat | |
| **Install WP CLI on Server | |
| curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
| ** Test Install | |
| php wp-cli.phar --info | |
| wp --info | |
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
| kubectl -n kube-system get secret |grep kubernetes-dashboard-token |cut -f1 -d ' ' | xargs kubectl -n kube-system describe secret |