// Add the duplicate link to action list for post_row_actions // for “post” and custom post types add_filter( ‘post_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); // for “page” post type add_filter( ‘page_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); function rd_duplicate_post_link( $actions, $post ) {…Continue reading
add_filter( ‘charitable_campaign_builder_html_allowed_tags’, ‘example_charitable_add_html_tags_to_html_visual_builder’, 10, 2 ); function example_charitable_add_html_tags_to_html_visual_builder( $allowed_html = array(), $campaign ) { // this replaces the default allowed tags with the following. Add or remove tags (and attributes) as needed. $allowed_html = array( ‘a’ => [ ‘href’ =>…Continue reading
/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets…Continue reading
/** * change arabic currency symbol to short Currency name for AED, SAR, QAR , BHD , OMR , KWD */ add_filter( ‘woocommerce_currency_symbol’, ‘wc_change_uae_currency_symbol’, 10, 2 ); function wc_change_uae_currency_symbol( $currency_symbol, $currency ) { switch ( $currency ) { case ‘AED’:…Continue reading
// Reference URL: https://facetwp.com/help-center/listing-templates/wp-archive-page/ // // This script is used to detect the query loop on the post category pages below and // enables filter functionality via FacetWP facets. // // Applies to Post Categories: // – Real Weddings //…Continue reading
function insert_post_filter () { echo ‘ ‘; // get the current taxonomy term $term = get_queried_object(); the_field(‘post_filters_section’, $term); echo ‘ ‘; echo ‘ ‘; } add_action(‘loop_start’, ‘insert_post_filter’);Continue reading
// This script is designed to modify the query arguments used by WP Grid Builder // for vendor taxonomy archives, ensuring that only relevant posts are displayed // according to the current URL path. It targets a specific grid layout…Continue reading
add_filter(‘term_link’, ‘custom_vendor_term_link’, 10, 3); // Vendor Detail Link Enrichment // Ensure that all post terms listed on vendor detail layout link back to their // respective (deep link) term page. function custom_vendor_term_link($url, $term, $taxonomy){ switch ($taxonomy) { case ‘vendor-location’: return…Continue reading