Gravity Forms – Changing Edit Entry Page Title

add_filter( ‘gravityview_edit_entry_title’, ‘gk_change_edit_entry_title’, 10, 1); function gk_change_edit_entry_title( $previous_text = ‘Edit Entry’ ) { $view_id = GravityView_View::getInstance()->getViewId(); if($view_id == 5082){ $title = ‘Edit My Registration’; } return $title; }Continue reading

Gravity Forms – Changing Edit Entry Page Title

add_filter( ‘gravityview_edit_entry_title’, ‘gk_change_edit_entry_title’, 10, 1); function gk_change_edit_entry_title( $previous_text = ‘Edit Entry’ ) { $view_id = GravityView_View::getInstance()->getViewId(); if($view_id == 5082){ $title = ‘Edit My Registration’; } return $title; }Continue reading

get one entry from a formidable form

/** Funktion zur Ermittlung aller Einträge in einem Formidable Form. Optional kann mit einem $searchTerm gefiltert werden. */ function getOneEntryFromForm($entry_id) { // API-Schlüssel abrufen $frmApiKey = getFormidableApiKey(); // Die vollständige API-URL $url = “https://dev.transformationalchange.de/wp-json/frm/v2/entries/” . $entry_id; // Optionen für die…Continue reading

PHP [Stripe]: Integrate Stripe Customer Portal via API

add_action( ‘gform_stripe_customer_after_create’, ‘save_stripe_customer_id_to_entry’, 10, 2 ); function save_stripe_customer_id_to_entry( $customer, $feed ) { global $entry; // Save the Stripe customer ID to the entry if the user is not logged in if ( !is_user_logged_in() && isset( $customer->id ) && !empty( $customer->id…Continue reading

Allow SVG Files Upload (copy)

/** * 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

product attributes on hover

// PHP function to display product attributes add_action( ‘woocommerce_after_shop_loop_item_title’, ‘display_product_attributes_on_hover’, 10 ); function display_product_attributes_on_hover() { global $product; // Get product attributes $attributes = $product->get_attributes(); if ( ! empty( $attributes ) ) { // Output container for product attributes, initially hidden…Continue reading