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 | |
// Template Logic | |
function twt_trailer_archive_template($original_template) | |
{ | |
// Set our post type | |
$post_type = 'trailer'; | |
// Set the expected path for a override template within the site theme | |
$file = trailingslashit(get_template_directory()) . "archive-$post_type.php"; |
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
body, | |
code { | |
background-color: #10282E; | |
color: #c9d1d9; | |
} | |
nav.navigation .navigation-link, | |
nav.navigation { |
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 | |
// Disable core WordPress Gutenberg Blocks | |
add_filter('allowed_block_types', 'misha_allowed_block_types'); | |
function misha_allowed_block_types($allowed_blocks) | |
{ | |
$allowed_blocks = []; | |
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered(); |
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('allowed_block_types', 'ca_allowed_block_types'); | |
function ca_allowed_block_types($allowed_blocks) | |
{ | |
$allowed_blocks = []; | |
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered(); | |
$blocks = array_keys($block_types); | |
foreach ($blocks as $block => $block_name) { |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# ZSH=/usr/share/oh-my-zsh/ | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME |
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 | |
/** | |
* Disable Fullscreen Gutenberg. | |
*/ | |
if (is_admin()) { | |
function ca_disable_editor_fullscreen_by_default() | |
{ | |
$script = "jQuery( window ).load(function() { const isFullscreenMode = wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ); if ( isFullscreenMode ) { wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' ); } });"; | |
wp_add_inline_script('wp-blocks', $script); | |
} |
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
SELECT | |
wp_posts.ID, | |
wp_posts.post_title, | |
bill.meta_value AS bill, | |
year.meta_value AS year, | |
chapter.meta_value AS chapter, | |
house.meta_value AS house | |
FROM | |
wp_posts | |
LEFT JOIN wp_postmeta AS bill ON wp_posts.ID = bill.post_id |
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
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
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 | |
/** | |
* Get all the user ID's for the specified user roles | |
* | |
* @param array $role | |
* @return array User ID's | |
*/ | |
function get_all_user_ids_by_user_roles($role) | |
{ |
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
name: SCSS Build and Deploy | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: |
OlderNewer