add_filter( ‘wpcode_smart_tags’, function( $tags ) { $tags[‘custom’] = array( ‘label’ => ‘Custom’, ‘tags’ => array( ‘permalink’ => array( ‘label’ => ‘Permalink’, ‘function’ => ‘wpcode_custom_permalink_tag’, ), ‘permalinkcom’ => array( ‘label’ => ‘Permalink.com’, ‘function’ => ‘wpcode_custom_permalink_tag_com’, ), ‘permalinkcouk’ => array( ‘label’ =>…Continue reading
add_filter( ‘wpcode_smart_tags’, function( $tags ) { $tags[‘custom’] = array( ‘label’ => ‘Custom’, ‘tags’ => array( ‘permalink’ => array( ‘label’ => ‘Permalink’, ‘function’ => ‘wpcode_custom_permalink_tag’, ), ), ); return $tags; } ); function wpcode_custom_permalink_tag() { // Replace custom_field_tag below with the…Continue reading
// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading
/** * Plugin Name: WP Simple Pay – BuddyBoss Compatibility Fix */ if ( isset( $_GET[‘simpay-preview’] ) ) { remove_action( ‘bp_nouveau_enqueue_scripts’, ‘bp_nouveau_search_enqueue_scripts’ ); }Continue reading
// Add the audio field to the signup form. add_action( ‘wcv_form_input_after__wcv_store_name’, ‘wcv_audio_uploader’); function wcv_audio_uploader( ){ // Remove this check to have it show on sign up and settings pages. if (‘signup’ == WCVendors_Pro_Store_Form::$form_type ){ echo ‘ Audio Uploader ‘; $value…Continue reading
/** Activates all Vendor Stores **/ function wcv_activate_all_vendors() { global $wpdb; $vendors = get_users( array( ‘fields’ => array( ‘ID’ ), ‘role’ => ‘Vendor’ ) ); $meta_key = ‘_wcv_vendor_status’; foreach($vendors as $vendor){ $wpdb->query($wpdb->prepare(“UPDATE wp_usermeta SET meta_value=’active’ WHERE user_id=$vendor->ID AND (meta_key=’$meta_key’ AND…Continue reading
add_filter(‘big_image_size_threshold’, ‘__return_false’ );Continue reading
add_filter( ‘charitable_session_donation_amount’, ‘example_get_donation_amount_in_session’, 999, 2 ); function example_get_donation_amount_in_session( $amount = false, $campaign = false ) { // If the donation amount is not set in the session, return the default amount. // WARNING: Setting a default amount here will override…Continue reading
/* Change Admin Logo */ add_action( ‘login_head’, ‘rd_login_logo’ ); function rd_login_logo() { echo ‘ ‘; } /* Replace Link URL */ add_filter( ‘login_headerurl’, ‘rd_login_url’ ); function rd_login_url(){ return ‘https://rubberduckers.co.uk’; } /* Change login logo hover text */ add_filter( ‘login_headertext’, ‘rd_login_logo_title’…Continue reading