Conversation
supportIs there a way to stop the plugin from outputting the target=”_self” property?
Hello wpshushu, At the moment, there isn’t an option available to achieve this. I’ve created a ticket to track the request, but I can’t provide a release date or guarantee that it will be implemented. If you’d like to make the adjustment directly in the plugin, it’s fairly simple: Open the file: /daext-autolinks-manager/shared/class-daextam-shared.php Go to line 1032 inside the preg_replace_callback_2() method Set the $open_new_tab variable to an empty string. Note that this adjustment is valid for version 1.10.10: // Get the "open_new_tab" value. if ( 1 === intval( $this->autolinks_ca[ $autolink_id ]['open_new_tab'], 10 ) ) { $open_new_tab = 'target="_blank"'; } else { $open_new_tab = ''; } This reply was modified 8 months, 4 weeks ago by Dani . This reply was modified 8 months, 4 weeks ago by Dani .
@devdani Possible to provide a HOOK for future updates? Thanks!
Hello wpshushu, At the moment, there isn’t an option available to achieve this. I’ve created a ticket to track the request, but I can’t provide a release date or guarantee that it will be implemented. If you’d like to make the adjustment directly in the plugin, it’s fairly simple: Open the file: /daext-autolinks-manager/shared/class-daextam-shared.php Go to line 1032 inside the preg_replace_callback_2() method Set the $open_new_tab variable to an empty string. Note that this adjustment is valid for version 1.10.10: // Get the "open_new_tab" value. if ( 1 === intval( $this->autolinks_ca[ $autolink_id ]['open_new_tab'], 10 ) ) { $open_new_tab = 'target="_blank"'; } else { $open_new_tab = ''; } This reply was modified 8 months, 4 weeks ago by Dani . This reply was modified 8 months, 4 weeks ago by Dani .
@devdani Possible to provide a HOOK for future updates? Thanks!