get all entries from a form

/** Funktion zur Ermittlung aller Einträge in einem Formidable Form. Optional kann mit einem $searchTerm gefiltert werden. */ function getFormidableDataFromForm($formId, $searchTerm) { // API-Schlüssel abrufen $frmApiKey = getFormidableApiKey(); // Die URL für die Anfrage zusammenstellen $searchstring = ”; if (!empty($searchTerm))…Continue reading

Allow SVG Files Upload

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

Automatic lazy rendering exclusion

// add_filter( ‘rocket_lrc_optimization’, ‘__return_false’ , 999 ); add_filter( ‘rocket_lrc_exclusions’, function( $exclusions ) { $exclusions[] = ‘breakdance”‘; return $exclusions; } );Continue reading

Gravity Forms – Entry Count Shortcode

/** * Gravity Wiz // Gravity Forms // Entry Count Shortcode * * Extends the [gravityforms] shortcode, providing a custom action to retrieve the total entry count and * also providing the ability to retrieve counts by entry status (i.e.…Continue reading

Disable OpenGraph Tags on all Listing Detail Pages

add_filter( ‘aioseo_facebook_tags’, ‘aioseo_filter_remove_facebook_tags’ ); function aioseo_filter_remove_facebook_tags( $facebookMeta ) { $uri = parse_url( $_SERVER[‘REQUEST_URI’], PHP_URL_PATH ); if ( strpos( $uri, ‘/listing-detail/’ ) !== false ) { return array(); } return $facebookMeta; }Continue reading

Remove Gutenberg Comment for Vendor Post Content

add_action( ‘save_post_vendor’, ‘clean_gutenberg_comments_on_save’, 10, 3 ); function clean_gutenberg_comments_on_save( $post_id, $post, $update ) { // Only run on updates, not when auto-saving or revisioning if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) { return; } // Ensure we’re dealing with the…Continue reading