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 | |
| /** | |
| * Facebook Shares | |
| */ | |
| class FacebookShareCount implements Share_Counter { | |
| public static function get_share_count( $url ) { | |
| $facebook_app_id = "YOUR_APP_ID"; | |
| $facebook_app_secret = "YOUR_APP_SECRET"; |
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
| /** | |
| * ReactDOM v15.3.0 | |
| * | |
| * Copyright 2013-present, Facebook, Inc. | |
| * All rights reserved. | |
| * | |
| * This source code is licensed under the BSD-style license found in the | |
| * LICENSE file in the root directory of this source tree. An additional grant | |
| * of patent rights can be found in the PATENTS file in the same directory. | |
| * |
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_footer', 'react_login_add_babel_script', 999); | |
| function react_login_add_babel_script() { | |
| ?> | |
| <script type="text/babel"> | |
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
| object(WP_Post)#497 (40) { | |
| ["ID"]=> | |
| int(160) | |
| ["post_author"]=> | |
| string(1) "1" | |
| ["post_date"]=> | |
| string(19) "2016-03-26 17:59:07" | |
| ["post_date_gmt"]=> | |
| string(19) "2016-03-26 17:59:07" | |
| ["post_content"]=> |
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_footer', 'youtube_video_html'); | |
| function youtube_video_html(){ | |
| ?> | |
| <div class="video_modal"> | |
| <button class="video_modal_close" onClick="closeVideo();">x</button> | |
| <div id="videoPlayer"></div> | |
| </div> | |
| <?php |
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( 'cron_schedules', 'six_hours_custom_schedule' ); | |
| function six_hours_custom_schedule( $schedules ) { | |
| $schedules['every_six_hours'] = array( | |
| 'interval' => 6 * HOUR_IN_SECONDS, | |
| 'display' => esc_html__( 'Every Six Hours' ), | |
| ); | |
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 | |
| function change_link( $permalink, $post ) { | |
| if( $post->post_type == 'resources_post_type' ) { | |
| $resource_terms = get_the_terms( $post, 'resource_type' ); | |
| $term_slug = ''; | |
| if( ! empty( $resource_terms ) ) { | |
| foreach ( $resource_terms as $term ) { |
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 | |
| $error_code = 'my_error_code'; | |
| $error_message = __( 'My Error Message', 'my_textdomain' ); | |
| $api_error = new WP_Error( $error_code, $error_message ); |
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 | |
| /** | |
| * Plugin Name: MailChimp WordPress Plugin | |
| * Description: Create MailChimp forms in WordPress to collect emails | |
| * Version: 1.0 | |
| * Author: Igor Benic | |
| * Author URI: https://ibenic.com | |
| * | |
| * Text Domain: wp_mailchimp |