Organization Types Detail – ShortCode

add_shortcode(‘organization_type_table’, function () { if (!is_tax(‘organization-type’)) { return ‘ This shortcode must be used on an Organization Type archive page. ‘; } $term = get_queried_object(); if (!isset($term->term_id)) { return ‘ Invalid type context. ‘; } ob_start(); ?> ← Back to…Continue reading

Changing the Name Attribute of a Hidden Field

/** * Custom function to change the name attribute of hidden fields in any form. * * @link https://wpforms.com/developers/how-to-change-the-name-attribute-of-a-hidden-field/ */ function wpf_field_properties_hidden( $properties, $field, $form_data ) { // Optional, you can limit to specific forms. Below, we restrict output to…Continue reading

Hiding the Currency Symbol in WPForms Total Field

/** * Hide currency symbol in WPForms. */ add_filter( ‘wpforms_currencies’, function( $currencies ) { $form_data = wpforms()->obj( ‘process’ )->form_data ?? []; if ( empty( $form_data ) ) { $frontend = wpforms()->obj( ‘frontend’ ); if ( ! empty( $frontend->forms ) )…Continue reading

Search Filter by Genre and Artist

add_action( ‘pre_get_posts’, ‘softcomplexmusic_custom_search_filter’ ); function softcomplexmusic_custom_search_filter( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_search ) { $tax_query = []; if ( !empty($_GET[‘genre’]) ) { $tax_query[] = array( ‘taxonomy’ => ‘genre’, // Ensure this matches your site’s taxonomy slug…Continue reading

PASSWORD PROTECT

// Simple public password protection for WordPress Multisite Subsite with mapped domains add_action(‘init’, function() { $required_password = ‘letmein’; //Continue reading