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 | |
echo esc_attr( get_post_meta( $att_id, '_wp_attachment_image_alt', true ) ); |
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
# for directories | |
find . -type d -exec chmod 755 {} \; | |
# for files | |
find . -type f -exec chmod 644 {} \; |
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
{ | |
"legend": { | |
"title": "Primary Care (PCMH) Sites", | |
"labels": ["1-20 Sites", "21-60 Sites", "61-200 Sites", "201+ Sites"], | |
"ranges": [ | |
{ | |
"min": 1, | |
"max": 20, | |
"color": "#9ecae1" | |
}, |
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
systemctl restart systemd-logind |
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
// psuedo-code | |
{ | |
"query" : "some event", | |
"results" : | |
"events" : [ | |
{ | |
"event_name": "Some Event Name 123", | |
"event_id" : 123 | |
}, | |
{ |
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('next_posts_link_attributes', 'posts_link_attributes'); | |
add_filter('previous_posts_link_attributes', 'posts_link_attributes'); | |
function posts_link_attributes() { | |
return 'class="styled-button"'; | |
} |
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: Sizeable Whitelist Login | |
Author: Sizeable Interactive | |
Author URI: https://www.sizeableinteractive.com | |
Version: 0.1 | |
Description: Server agnostic plugin to white list WordPress login screen to IP addresses using a self-authenticating secret URL. | |
**** NOTE *** | |
You must define the SZBL_SECRET_LOGIN_URL or set a login URL in the settings page for this plugin to take affect. |
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 subval_sort( $a, $b ) | |
{ | |
if ( $a['date'] == $b['date'] ) | |
return 0; | |
return $a['date'] < $b['date'] ? -1 : 1 | |
} | |
usort( $post_data, 'subval_sort' ); |
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 | |
if ( function_exists( 'acf_add_options_page' ) ) | |
{ | |
$option_page = acf_add_options_page(array( | |
'page_title' => 'Theme General Settings', | |
'menu_title' => 'Theme Settings', | |
'menu_slug' => 'theme-general-settings', | |
'capability' => 'edit_posts', | |
'redirect' => 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
<script type="text/javascript"> window._pt_lt = new Date().getTime(); window._pt_sp_2 = []; _pt_sp_2.push('setAccount,5fd92b3a'); var _protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); (function() {var atag = document.createElement('script'); atag.type = 'text/javascript'; atag.async = true; atag.src = _protocol + 'jsv2.ptengine.com/pta.js'; var stag = document.createElement('script'); stag.type = 'text/javascript'; stag.async = true; stag.src = _protocol + 'jsv2.ptengine.com/pts.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(atag, s);s.parentNode.insertBefore(stag, s);})();</script> |
NewerOlder