/** * @link https://library.wpcode.com/snippet/j57gg315/ */ add_action( ‘simpay_payment_receipt_viewed’, /** * Runs the first time the payment confirmation page is viewed. * * @param array $payment_confirmation_data */ function( $payment_confirmation_data ) { // Payment customer data (not used in this example). $customer =…Continue reading
// Function to add the calculator to the admin menu function ft_calculator_admin_menu() { add_menu_page( “Fluid Typography Calculator”, // Page title “Typography Calculator”, // Menu title “manage_options”, // Capability “fluid-typography-calculator”, // Menu slug “ft_calculator_page” // Function that displays the page content…Continue reading
/** * @link https://library.wpcode.com/snippet/qo9xxmjo/ * * @param \Stripe\Event $event Stripe Event. * @param \Stripe\Subscription|\Stripe\PaymentIntent $object Stripe Subscription or PaymentIntent */ function simpay_update_wp_user( $event, $object ) { $email_address = $object->customer->email; $wp_user = get_user_by( ’email’, $email_address ); // User cannot be found,…Continue reading
google.com, pub-9217976203305712, DIRECT, f08c47fec0942fa0Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
add_filter( ‘totaltheme/header/menu/is_custom’, ‘__return_true’ );Continue reading
add_filter( ‘totaltheme/page/header/has_title’, ‘__return_false’ );Continue reading
add_filter( ‘wpex_social_share_data_email_body’, function( $body ) { return ‘My custom email body text’; } );Continue reading
add_filter( ‘wpex_social_share_data_email_subject’, function() { return ‘My custom subject’; } );Continue reading