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 | |
add_filter( 'the_content', 'uamv_series_list', 2 ); | |
function uamv_series_list( $content ) { | |
// associative array with seriesName => array of post IDs | |
$series = array( | |
'#MissionText' => array( 5671, 5691, 5741, 5814 ), | |
'Prayer' => array( 171, 220, 235, 237, 239, 241, 3890 ), | |
); |
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
// Using an object literal for a jQuery feature | |
var alphaBoards = { | |
init: function( settings ) { | |
alphaBoards.setup(); | |
if ( $('.ownProfile').length ) { | |
alphaBoards.config = { | |
parentSelector: ".UserBoards.ownProfile div:first-child .GridItems", | |
childSelector: "div.item", | |
keySelector: "div a.boardLinkWrapper", |
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 | |
use Carbon_Fields\Field\Field; | |
use Carbon_Fields\Datastore\Datastore; | |
/** | |
* Stores serialized values in the database | |
*/ | |
class Serialized_Post_Meta_Datastore extends Datastore { |
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_action( 'admin_init', 'typewheel_remove_privacy_notice_pointer_wp496' ); | |
function typewheel_remove_privacy_notice_pointer_wp496() { | |
$users = get_users(); | |
foreach ( $users as $user ) { | |
$dismissed = array_filter( explode( ',', (string) get_user_meta( $user->ID, 'dismissed_wp_pointers', true ) ) ); | |
$pointer = 'wp496_privacy'; |
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_action('admin_footer', 'typewheel_notification_assistant' ); | |
function typewheel_notification_assistant() { | |
// Add script if current screen belongs to iThemes Security | |
if ( get_current_screen()->id == 'toplevel_page_itsec' ) { ?> | |
<script> | |
let myUser = ''; |
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 | |
add_filter( 'gform_notification', function ( $notification, $form, $entry ) { | |
$notification['toType'] = 'email'; | |
$notification['to'] = 'email@example.com'; | |
return $notification; | |
}, 10, 3 ); |
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 | |
/* | |
Dynamically populates the first column of a Gravity Form multi-column list field | |
REQUIREMENTS | |
(1) The end of the the `gform_field_value_$parameter_name` filter must match the parameter you've set to allow field to be populated dynamically | |
(2) The key in each row's array element must match the header you have set for the column. | |
*/ | |
add_filter( 'gform_field_value_certifications', 'typewheel_prefill_certifications_list' ); |
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 | |
function twxyz_prevent_gform_submission( $form ) { ?> | |
<script type="text/javascript"> | |
jQuery(document).bind('gform_post_render', function(){ | |
jQuery(document).on( 'keypress', '.gform_wrapper', function (e) { | |
var code = e.keyCode || e.which; | |
if ( code == 13 && ! jQuery( e.target ).is( 'textarea,input[type="submit"],input[type="button"]' ) ) { | |
e.preventDefault(); | |
return false; |
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
.column-list-view .column-list .column-list-content { | |
flex-direction: column; | |
flex-wrap: wrap; | |
max-height: calc( 100vh - 72px ); | |
width: fit-content; | |
} | |
.column-list-view .column { | |
margin: 0 1.5em 2em 6px; | |
height: fit-content; |
OlderNewer