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 mdgSMTP { | |
| public static function setup() { | |
| add_action( 'phpmailer_init', [ __CLASS__, 'configure_php_mailer' ] ); | |
| if ( class_exists('WP_CLI') ) { | |
| WP_CLI::add_command( 'send-test-email', [ __CLASS__, 'send_test_email' ] ); |
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
| .project-cards { | |
| margin: 2em 0; | |
| } | |
| .project-card { | |
| margin: .5em 0; | |
| /* border: 1px solid #444; */ | |
| background: hsla(0, 0%, 0%, .1); | |
| padding: .5em .5em .5em 2em; | |
| position: relative; |
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 | |
| namespace RunThroughHistory\WPGraphQL\Type\Object; | |
| use WPGraphQL\Model\User as UserModel; | |
| use RunThroughHistory\Interfaces\Hookable; | |
| class User implements Hookable { | |
| public function register_hooks() { |
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
| // https://www.facebook.com/groups/huntakiller/permalink/2867593840175865/ | |
| function decode( encodedPhrase = '' ) { | |
| let key = [ | |
| [ 'A', 'B', 'C', 'D', 'E' ], | |
| [ 'F', 'G', 'H', 'IJ', 'K' ], | |
| [ 'L', 'M', 'N', 'O', 'P' ], | |
| [ 'Q', 'R', 'S', 'T', 'U' ], | |
| [ 'V', 'W', 'X', 'Y', 'Z' ] |
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 myBlock { | |
| public static function setup() { | |
| add_action('acf/init', [ __CLASS__, 'register' ] ); | |
| } |
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
| /* Add a background image. */ | |
| .AppContainer { | |
| background-image: url(https://localhost/dynalist_background.jpg); | |
| background-size: cover; | |
| background-position: right center; | |
| } | |
| /* Darken the background image. */ | |
| .main-container { | |
| background-color: rgba(24,24,24,0.95); |
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( 'wp_enqueue_scripts', 'update_jquery' ); | |
| function update_jquery() { | |
| wp_deregister_script ( 'jquery' ); | |
| wp_register_script ( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js', [], '3.5.1' ); | |
| } |
NewerOlder