Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonpontet/external-links-to-new-window
https://github.com/jonpontet/external-links-to-new-window
browser external external-sites seo seo-optimization tabs window wordpress wordpress-plugin
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonpontet/external-links-to-new-window
- Owner: jonpontet
- License: gpl-3.0
- Created: 2018-04-08T14:19:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T16:01:50.000Z (over 6 years ago)
- Last Synced: 2024-10-11T07:12:30.042Z (about 1 month ago)
- Topics: browser, external, external-sites, seo, seo-optimization, tabs, window, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 1.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# External Links to New Window
This is a plugin for WordPress which, when enabled, will open all links in a new window or tab that are not of the same domain as the WordPress site. It works only on blog post and page content as it makes use of the WordPress [`the_content` filter](https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content) - this is a core feature of the plugin as it is designed to be as lean and least-cumbersome as possible.
## Running the tests
1. [Install PHPUnit](https://phpunit.de/manual/6.5/en/installation.html)
1. [Install WP-CLI](https://wp-cli.org/)
1. Run the command `bin/install-wp-tests.sh wordpress_test username 'password' localhost latest` from the plugin root. `wordpress_test` is the name of the MySQL database that will be created. `username` the name for the MySQL connection. `password` the password for the MySQL connection. `localhost` the host of the MySQL database.
1. Run the command `phpunit` to run all the testsMore help if you need it thanks to [Smashing Magazine](https://www.smashingmagazine.com/2017/12/automated-testing-wordpress-plugins-phpunit/).
## Built with
* [PHPUnit](https://phpunit.de/)
* [PHP Simple HTML DOM Parser](http://sourceforge.net/projects/simplehtmldom/)## Contributing
Please read [CONTRIBUTING.md](https://github.com/etalented/external-links-to-new-window/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.
## Authors
* Authored by [Etalented](https://etalented.co.uk)
* Initial work by [Christopher Ross](http://thisismyurl.com)## License
This software is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE.md file for details.