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
<Files *.php> | |
deny from all | |
</Files> |
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 | |
// include all PHP files in ./lib/ directory: | |
foreach ( glob( dirname( __FILE__ ) . '/lib/*.php' ) as $file ) | |
include $file; | |
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 | |
// you can do this in your functions.php file, a plugin file | |
// or even in your theme before comments are displayed: | |
add_filter( 'comments_array', 'array_reverse' ); | |
?> |
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
<?php | |
class Sizeable_Person | |
{ | |
const POST_TYPE_SLUG = 'szbl-person'; | |
public static $instance; | |
public static function init() | |
{ | |
if ( is_null( self::$instance ) ) |
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
<?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
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 | |
}, | |
{ |
NewerOlder