Skip to content
wpjoli
  • Blog
  • Plugins
    • Joli FAQ SEO
    • Joli Table Of Contents
    • Joli CLEAR Lightbox
  • Support
    • Documentation
Search this website
  • Blog
  • Plugins
    • Joli FAQ SEO
    • Joli Table Of Contents
    • Joli CLEAR Lightbox
  • Support
    • Documentation

joli_faq_seo_faq_id

  1. Home>
  2. Documentation>
  3. Joli FAQ SEO>
  4. Developer hooks>
  5. Filters
  • Getting started
  • FAQ Editor [7]
    • Overview
    • How to Create a FAQ Group
    • How to create a FAQ
    • How to edit a FAQ
    • How to remove a FAQ from a FAQ Group
    • How to delete a FAQ
    • Drag’n’drop
  • Shortcodes [1]
    • [joli-faq-seo] shortcode
  • Developer hooks [22]
    • Filters [13]
      • joli_faq_seo_schema_faq_answer_allowed_tags
      • joli_faq_seo_shortcode_tag
      • joli_faq_seo_faqs
      • joli_faq_seo_front_options
      • joli_faq_seo_faq_group
      • joli_faq_seo_group_classes
      • joli_faq_seo_toggle_html
      • joli_faq_seo_schema
      • joli_faq_seo_faq_question
      • joli_faq_seo_faq_answer
      • joli_faq_seo_faq_group_name
      • joli_faq_seo_copy_link_label
      • joli_faq_seo_faq_id
    • Actions [7]
      • joli_faq_seo_before_faq
      • joli_faq_seo_before_question
      • joli_faq_seo_before_question_inner
      • joli_faq_seo_after_question_inner
      • joli_faq_seo_after_question
      • joli_faq_seo_before_answer_inner
      • joli_faq_seo_after_answer_inner
  • Home
  • /
  • Documentation
  • /
  • Joli FAQ SEO
  • /
  • Developer hooks
  • /
  • Filters

joli_faq_seo_faq_id

Customizes the FAQ HTML id attribute

add_filter( 'joli_faq_seo_faq_id', function($id, $faq){
    //example of modification of the ID, this ID will be used in the link to the FAQ
    returnĀ 'prefix_' . $faq['ID'];
}, 10, 2);

Last modified October 7, 2022

Doc navigation

< joli_faq_seo_copy_link_label
Was this page helpful?
Yes No
  • Blog
  • Support
  • Terms and Conditions
  • Privacy Policy
Copyright 2023 - WPJoli