This file contains hidden or 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
.top-timeline-tweetbox .tweet-form.condensed .rich-editor.notie div { | |
display: none; | |
} | |
.top-timeline-tweetbox .tweet-form.condensed .rich-editor.notie:after { | |
content: "WHAT IS HAPPENING"; | |
} | |
.top-timeline-tweetbox .tweet-form div.rich-editor.is-showPlaceholder:before { | |
content: "WHAT IS HAPPENING" | |
} |
This file contains hidden or 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
wget -O - "http://example.com/?query=1" > /dev/null 2>&1 |
This file contains hidden or 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 scriptmem { | |
public static $cache; | |
public static function init() { | |
if(self::$cache === null) { | |
self::$cache = array(); | |
} | |
return self::$cache; | |
} |
This file contains hidden or 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_action('template_redirect', function () { | |
if (is_user_logged_in()) { | |
$q_object = get_queried_object(); | |
if (($q_object) && (is_a($q_object, 'WP_Post')) && ($q_object->post_type == 'sfwd-courses')) { | |
if (sfwd_lms_has_access($q_object->ID)) { | |
$steps = learndash_get_course_steps($q_object->ID); | |
if (count($steps)) { | |
wp_redirect(get_permalink($steps[0])); |
This file contains hidden or 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('learndash_mark_complete', function($return, $post) { | |
$course_hide_markcomplete = 0; | |
if(learndash_get_course_id($post->ID) == $course_hide_markcomplete) { | |
$return = ''; | |
} | |
return $return; | |
}, 10, 2); |