add_action( ‘charitable_default_campaign_fields’, ‘test_charitable_default_campaign_fields’, 10, 1 ); function test_charitable_default_campaign_fields( $form_fields ) { // make the short description hidden, don’t remove as this make cause problems with legacy code. if ( isset( $form_fields[‘description’][‘campaign_form’] ) ) { $form_fields[‘description’][‘campaign_form’][‘type’] = ‘hidden’; } // change…Continue reading
/** * Force loading the Free Downloads assets on the frontend. */ function eddwp_free_downloads_scripts() { EDD\FreeDownloads\Assets\Frontend::enqueue( true ); } remove_action( ‘wp_enqueue_scripts’, ‘edd_free_downloads_scripts’ ); add_action( ‘wp_enqueue_scripts’, ‘eddwp_free_downloads_scripts’ );Continue reading
function mepr_change_role_canceled_subscription( $event ) { $subscription = $event->get_data(); if( 123 != ( int ) $subscription->product_id ) { return; } $user = $subscription->user(); $wp_user = get_user_by( ‘id’, $user->ID ); if( !$wp_user ) { return; } // Remove role $wp_user->remove_role( ‘subscriber’ );…Continue reading
function sbi_img_alt( $img_alt, $post ) { $alt_text = __( ‘Instagram Image’, ‘instagram-feed’ ); return $alt_text; } add_filter( ‘sbi_img_alt’, ‘sbi_img_alt’, 10, 2 );Continue reading
$attributes = [ ‘noindex’ => ”, ‘nofollow’ => ”, ‘noarchive’ => ”, ‘nosnippet’ => ”, ‘noimageindex’ => ”, ‘noodp’ => ”, ‘notranslate’ => ”, ‘max-snippet’ => ”, ‘max-image-preview’ => ”, ‘max-video-preview’ => ” ];Continue reading
add_action( ‘admin_init’, function() { if ( isset( $_GET[‘export_members_extended’] ) ) { $all = MeprUser::list_table( /* $order_by */ ‘user_login’, /* $order */ ‘ASC’, /* $paged */ ”, /* $search */ ”, /* $search_field */ ‘any’, /* $perpage */ ”, /* $params…Continue reading
add_filter( ‘aioseo_classic_editor_disable_emoji_script’, ‘__return_true’ );Continue reading