This file contains 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: Disable Admin Notification Password Change | |
* Plugin URI: https://www.michaelbragg.com | |
* Description: Disable the email notification, to the site admin, when a user changes their password. | |
* Author: Michael Bragh | |
* Author URI: [email protected] | |
* Version: 1.0.0 | |
* License: GPLv3 | |
*/ |
This file contains 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 | |
/** | |
* Block: Icons | |
* | |
* @package EDGE\Toolkit\Components | |
*/ | |
// Default class to use as base for custom CMS class. | |
$block_link_classes = [ | |
'c-icon-group' |
This file contains 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
volumes: | |
db_data: | |
version: '3.7' | |
services: | |
mysql: | |
container_name: mysql | |
image: mysql:5.7 | |
volumes: |
This file contains 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
/** | |
* Update ACF Local JSON save path. | |
*/ | |
function ti_acf_json_save_point( $path ) { | |
// Update save file path. | |
$path = WPMU_PLUGIN_DIR . '/acf-json'; | |
return $path; | |
} | |
add_filter( |
This file contains 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
<IfModule mod_headers.c> | |
Header set X-Robots-Tag "noindex, nofollow, noarchive" | |
<FilesMatch "\.(doc|pdf|png|jpe?g|gif)$"> | |
Header set X-Robots-Tag "noindex, noarchive, nosnippet" | |
</FilesMatch> | |
</IfModule> |
This file contains 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 to `get_search_form()` allowing custom classes to be passed to search form submit element. |
This file contains 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains 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 | |
/** | |
* Example One: String | |
*/ | |
if( is_post_type( 'post_type01' ) ): | |
echo "This is the post type"; | |
endif; |
This file contains 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
/** | |
* Register the form and fields for our front-end submission form | |
*/ | |
function cmb2_form() { | |
$business_category = new_cmb2_box( array( | |
'id' => 'cmb2_form_categories_business', | |
'title' => __( 'Business Start Up & Entrepreneur', 'cmb2_form' ), | |
'object_types' => array( 'cmb2_form', ), | |
'context' => 'normal', |
This file contains 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 | |
/** | |
* Testimonial Rotator: Loop Template | |
*/ | |
?> | |
<div class="slide slide<?php echo $slide_count;?> testimonial_rotator_slide hreview itemreviewed item <?php echo $has_image; ?> cf-tr"> | |
<?php /* Post Thumbnail */ ?> |