Title: Get &#8220;SEO elements structure&#8221; with PHP
Last modified: February 26, 2022

---

# Get “SEO elements structure” with PHP

 *  [Pinoss](https://wordpress.org/support/users/pinoss/)
 * (@pinoss)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/)
 * Nice plugin!
 * How can I get and echo in PHP SEO elements structure configured on the SEO tab({
   title} with [attribute] [values] and [attribute] [values] ) ?
 * Thanks in advance
    -  This topic was modified 4 years, 3 months ago by [Pinoss](https://wordpress.org/support/users/pinoss/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [RazyRx](https://wordpress.org/support/users/razyrx/)
 * (@razyrx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15422799)
 * Hello,
 * You can use action `braapf_seo_meta_title` to store instance of SEO class, then
   you can use this instance after WordPress `get_header` function `$instance->get_filters_string('
   title text');`.
 * Regards,
    Oleg
 *  Thread Starter [Pinoss](https://wordpress.org/support/users/pinoss/)
 * (@pinoss)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15425865)
 * Thanks for your response,
 * I tried it but is not working for me, probably i’m missing something.
 * I want to show the actual filtered URL title before products on product categories
   pages.
    I’m detecting if actual URL have any filter applied:
 * `if ( isset( $_GET['filters'] ) )`
 * and if it’s TRUE, I want to echo the title (is configured on SEO elements structure
   tab in order to show with filters names and values).
 * Can you share an example please?
 * Thanks in advance!
 *  Plugin Author [RazyRx](https://wordpress.org/support/users/razyrx/)
 * (@razyrx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15426415)
 * Hello,
 * Please provide code that you trying to use?
 * Regards,
    Oleg
 *  Thread Starter [Pinoss](https://wordpress.org/support/users/pinoss/)
 * (@pinoss)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15427074)
 * Hi!
 * This is my code, but I don’t know where to put “braapf_seo_meta_title” action
   and $instance.
 *     ```
       //Check if actual URL contain some filters
       if (  isset( $_GET['filters'] )) {
   
       	// if yes, echo title generated by ajax advanced filter plugin		
       echo "<h1>HERE NEED TO SHOW TITLE VARIABLE</h1>";
   
       }
       ```
   
 * Regards.
    -  This reply was modified 4 years, 2 months ago by [Pinoss](https://wordpress.org/support/users/pinoss/).
 *  Plugin Author [RazyRx](https://wordpress.org/support/users/razyrx/)
 * (@razyrx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15441391)
 * Hello,
 * To store instance use this code
 *     ```
       add_action('braapf_seo_meta_title', 'bapf_custom_store_seo_meta_instance', 10, 1);
       function bapf_custom_store_seo_meta_instance($instance) {
          global $store_bapf_seo_meta_var;
          $store_bapf_seo_meta_var = $instance;
       }
       ```
   
 * To use it use this code
 *     ```
       global $store_bapf_seo_meta_var;
       $store_bapf_seo_meta_var->get_filters_string('title text');
       ```
   
 * Regards,
    Oleg
 *  Thread Starter [Pinoss](https://wordpress.org/support/users/pinoss/)
 * (@pinoss)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15452930)
 * Wow awesome! Thanks a lot! Great plugin and support! I’ll give 5 star review

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Get “SEO elements structure” with PHP’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-ajax-filters/assets/icon-256x256.gif?rev=2770304)
 * [Advanced AJAX Product Filters](https://wordpress.org/plugins/woocommerce-ajax-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-ajax-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-ajax-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-ajax-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-ajax-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-ajax-filters/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Pinoss](https://wordpress.org/support/users/pinoss/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/get-seo-elements-structure-with-php/#post-15452930)
 * Status: not resolved