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
function dr_filter_post_meta_value( $input, int $post_id, string $meta_key, bool $single ) { | |
// Don't run in admin interface | |
if ( is_admin() ) { | |
return $input; | |
} | |
// Get list of filter | |
global $wp_current_filter; | |
$filter_key = count( $wp_current_filter ) - 2; |
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 | |
/** | |
* HOTFIX: Manually modified file until plugin gets updated | |
*/ | |
/** | |
* The public-facing functionality of the plugin. | |
* | |
* @package nc-wishlist-for-woocommerce |
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
/* | |
* Add decline button to list view of woocommerce bookings | |
*/ | |
function wocommerce_bookings_mods_add_custom_booking_status_button_to_bookings_list( $actions, $booking ) { | |
// Check if the booking requires a decision | |
if ( 'pending-confirmation' === $booking->get_status() ) { | |
// Add button to decline the booking | |
$actions['decline'] = array( |
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: Cross Media Cloud | Add language slug to blog name in admin bar | |
* Description: Show the blog language within the drop down of sites within the admin bar | |
* Version: 1.0 | |
* Author: Cross Media Cloud | |
* Author URI: https://www.cross-media-cloud.de | |
* License: GNU General Public License v2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ |
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 | |
/* | |
* Enqueue parent and child theme style.css | |
*/ | |
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 20 ); | |
function my_theme_enqueue_styles() { | |
// Get the theme data | |
$my_theme = wp_get_theme(); |
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
/* | |
* Add featured image to feed | |
*/ | |
add_filter( 'the_excerpt_rss', 'featuredToRSS' ); | |
add_filter( 'the_content_feed', 'featuredToRSS' ); | |
function featuredToRSS( $content ) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ) { |
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: Hide update notice for non admin | |
* Description: Hide the information about updates for non-admin | |
* Version: 1.0 | |
* Author: Cross Media Cloud | |
* Author URI: https://www.cross-media-cloud.de | |
* License: GPL | |
*/ |
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: User Switching | Admin Bar | |
* Plugin URI: http://markwilkinson.me | |
* Description: Build upon the User Switching plugin (http://wordpress.org/extend/plugins/user-switching/) by John Blackbourn and adds a dropdown list of users in the WordPress admin bar with a link to switch to that user. | |
* Author: Mark Wilkinson | |
* Author URI: http://markwilkinson.me | |
* Version: 1.0 | |
*/ |