Jagdish Sarma | Reputations Jagdish Sarma694 QuestionsAnswersReputations Asked a question The title filter for woocommerce product[apcode language="php"] add_filter( 'the_title', function( $title, $post_id ) { if ( is_product() && get_post_type( $post_id ) === 'product' ) { $seo_keyword = get_field(... 3 days ago 2 Asked a question Shopify Template for API Fetch Data[apcode language="php"] {% liquid assign wrapper_id = section.settings.wrapper_id assign wrapper_class = section.settings.wrapper_class %} <div {% if wrapper_id != blank %} id="{{... 4 days ago 2 Asked a question WP Script to List all plugins in browser console[apcode language="jscript"] jQuery(document).ready(function ($) { $('#the-list tr').each(function () { let pluginName = $(this).find('td.plugin-title strong').text().trim();... June 1, 2026 2 Asked a question Git Workflow (Step by Step Guide)[apcode language="bash"] git fetch origin git checkout staging git pull origin staging git checkout -b merge/feature-tag-deplyoment-to-stg git merge origin/feature/tag_deplyoment git status git push origin... May 22, 2026 2 Asked a question Pre comit Mac Path Set[apcode language="bash"] #!/usr/bin/env bash # # Pre-commit hook: enforce PHP syntax + whitespace/indentation conventions # on staged files. Detect-only — never modifies code. # # Pipeline: # 1. php... May 12, 2026 2 Asked a question Users Export N18 Codes[apcode language="sql"] --WP PREFIX--- SELECT u.ID, u.display_name, u.user_email AS email, u.user_registered AS created_at, fn.meta_value AS first_name, ln.meta_value... April 20, 2026 2 Asked a question SQL to find wordpress post count using custom meta fields[apcode language="sql"] SELECT u.ID AS user_id, u.display_name AS user_name, u.user_email, COUNT(DISTINCT p.ID) AS post_count FROM wp_posts p INNER JOIN wp_postmeta pm... March 24, 2026 2 Asked a question Wordpress disable Rest API for public[apcode language="php"] add_filter( 'rest_endpoints', array( $this, 'block_rest_api_endpoints' ) ); add_filter( 'rest_authentication_errors', array( $this, 'block_rest_api_authentication_errors'... December 9, 2025 2 Asked a question ACF Open required field tab group[apcode language="jscript"] jQuery(document).ready(function($) { $('#publish').on('click', function(e) { var invalidField = null; // Loop through... October 30, 2025 2 Asked a question Rank math seo add og:logo[apcode language="php"] add_filter( 'rank_math/head', function() { ?> <meta property="og:logo" content="/wp-content/uploads/2021/05/logo.webp" /> <?php... September 10, 2025 2 Asked a question WP Download multple post details as PDFCreate a New JS file "js/bulk-pdf.js" and Add the functions in functions.php and in "pdf-template.php" add your html [apcode language="php"] //Bulk All PDF function enqueue_bulk_pdf_scripts() { wp_enqueue_script(... May 16, 2025 2 Asked a question Download Multiple PDFs as ZIP via AJAX in WordPressCreate a JS and get the PDF links from Hidden Field [apcode language="jscript"] jQuery(document).ready(function($){ $('.download_all').on('click', function(e){ e.preventDefault();... May 16, 2025 2 Asked a question Woocommerce Facebook Pixel track[apcode language="php"] add_filter('wpm_send_http_api_facebook_capi_requests_blocking', '__return_true'); add_action('wp_footer', function() { if (is_page('thank-you-order')... March 19, 2025 2 Asked a question MC4WP: Mailchimp for WordPress Send data from Contact form 7 with Checkbox, Radio Buton ValueFirst change name of inputs to like this mc4wp-FIELDNAME and update checkbox names to send data to mailchimp [apcode language="php"] add_filter( 'mc4wp_integration_contact-form-7_data',... March 12, 2025 2 Asked a question Woocommerce Hide Free Shipping and Show based on conditions✅ Hides usps_simple:GROUND_ADVANTAGE when product ID 2133 is in the cart.✅ Shows only free shipping when all products in the cart belong to shipping class 61.✅ Hides free shipping if there are mixed... March 6, 2025 2 Asked a question Mac Terminal rename all files inside a folderHere renaming c2code to c2code_woo_email [apcode language="bash"] find . -type f -name "*c2code*.php" | while read file; do newname="$(dirname "$file")/$(basename "$file"... March 5, 2025 2 Asked a question Woocommerce Single product lightbox disable[apcode language="php"] add_action( 'after_setup_theme', 'c2_remove_zoom_lightbox_theme_support', 9999 ); function c2_remove_zoom_lightbox_theme_support() { remove_theme_support(... March 4, 2025 2 Asked a question Woocommerce Sale Text Shortcode[apcode language="php"] function custom_woocommerce_sale_text_shortcode($atts) { $atts = shortcode_atts( array('id' => ''), $atts, 'sale_text'... March 4, 2025 2 Asked a question Woocommerce Show Hide Free Shipping based on Shipping Class[apcode language="php"] add_filter( 'woocommerce_package_rates', 'c2code_hide_free_shipping_for_shipping_class', 9999, 2 ); function c2code_hide_free_shipping_for_shipping_class( $rates,... March 4, 2025 2 Asked a question WP Editor Add Body Class[apcode language="php"] //Editor Add class function cms_custom_editor_body_class($mce_init) { if (isset($mce_init['body_class'])) { $mce_init['body_class'] .=... March 3, 2025 2 Load More