Thread Starter
enone
(@enone)
I Answer Myself… Maybe Other Need This…
On Line 503 Of woo-title-limit.php Change
else if ( (is_home() || is_front_page()) && get_post_type( $id ) === 'product' ) {'
With This
else if ( get_post_type( $id ) === 'product' ) {
Plugin Author
DimaW
(@dimaw)
Thanks for the feedback and sorry for my late answer.
But I’m glad you found your own solution.
Remember that these changes will be overwritten by future updates.
Thread Starter
enone
(@enone)
Thanks DimaW No Problem… I Hope You Can Include In Next Version So… π
I’ve Also PHP Notice Warning Errors That I’m Unable To Fix…
[02-Jun-2019 10:48:44 UTC] PHP Notice: Undefined index: wtl_checkbox_etc_product in /home/public_html/wp-content/plugins/woo-title-limit/woo-title-limit.php on line 476
[02-Jun-2019 10:48:44 UTC] PHP Notice: Undefined index: wtl_checkbox_etc_product in /home/public_html/wp-content/plugins/woo-title-limit/woo-title-limit.php on line 487
Line 476 Is:
if($options['wtl_checkbox_etc_product'] != 1 && $options['wtl_count_product'] < strlen($title)){
Line 487 Is:
}else if($options['wtl_checkbox_etc_product'] == 1 && $options['wtl_count_product'] < strlen($title)){
Plugin Author
DimaW
(@dimaw)
You only need to check the variable with isset() before the comparison.
I will fix this in the upcoming version. Thank you for your feedback!