plugins_url(”,__FILE__) != WP_PLUGIN_URL with sym links

When writing a plugin, I define a few constants including the path to the plugin’s root folder, and its “name” as used in some admin hooks: define(‘WPSE_102681_PLUGIN_NAME’, basename(dirname(__FILE__)) . “https://wordpress.stackexchange.com/” . basename(__FILE__)); I’ve found that plugins_url() happily takes that constant, which is useful when referencing files from subfolders of the plugin, like so: echo plugins_url(‘images/information.png’, … Read more

Transferring contact form input to an email account without using an email-proxy

The CF7 plugin uses WordPress built-in wp_mail() function which itself uses the PHPMailer class (github repo). The PHPMail github documentation states, The PHP mail() function usually sends via a local mail server, typically fronted by a sendmail binary on Linux, BSD and OS X platforms, however, Windows usually doesn’t include a local mail server; PHPMailer’s … Read more