Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    1. Yes, it is possible. Plugin has special filter called aws_special_chars for this.
    With this filter you can add any additional special characters that must be ignored.

    Code snippet can look like

    add_filter( 'aws_special_chars', 'aws_special_chars' );
    function aws_special_chars( $chars ) {
        $chars[] = '̲';
        $chars[] = '(̲)';
        return $chars;
    }

    You need to add it somewhere outside plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.
    Also after adding this code you will need to go to the plugin settings page and click ‘Clear cache’ button.

    2. I believe that this plugin add this new fields as custom fields of WooCommerce products.
    Yes, it is possible to search inside such fields, but only with PRO plugin version. Pro version gives option to search for product custom fields, attributes and custom taxonomies.

    Regards

    Thread Starter msamavi

    (@msamavi)

    Thank you very much for your quick reply.
    However I could not get through using your code snippet! It did not work.

    Can you please advise how to use the character code like & #818; (the space between & and # is intentional in here and should be removed while using the code).

    Regards.

    Thread Starter msamavi

    (@msamavi)

    Dear @mihail-barinov

    More comments:

    Your code snippet works for normal characters; for example, $chars[] = ‘n’; makes all ‘n’ characters to be ignored.

    I need a way to declare some characters html codes to get ignored as they can not be displayed separately. For example, what you see above ‘ā’ can not be typed separate from ‘a’ so to be ignored, but its code is &#772 ;

    Some more example: Ḥz̲āʹī

    I would definitely pay for the plugin if the above-mentioned issues could be fixed.

    Thank you.

    Plugin Author ILLID

    (@mihail-barinov)

    Looks like I understand how this can be fixed.
    You need to place & #818; at beginning of special chars array.
    Please use code like

    add_filter( 'aws_special_chars', 'aws_special_chars' );
    function aws_special_chars( $chars ) {
        array_unshift( $chars, '& #818;', '& #772;' );
        return $chars;
    }
    Thread Starter msamavi

    (@msamavi)

    Your latest code snippet did not work!

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

The topic ‘Handling special characters and fields’ is closed to new replies.