Global Contact Details

Global Contact Details is a WordPress plugin that provides setting fields to store and display global contact details.

Fields provided are:

  • Phone number
  • Email
  • Address
  • Map url
  • Contact name

These can be edited by anyone from Editor role upwards.

The field content can be outputted across a website but updated all in one place.

Installation

  1. Upload the ‘global-contact-details’ directory to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Output the fields on any php template using this code:
 if (has_action('contact_detail')) {
do_action('contact_detail');
}

Credits

Created using tutorial on how to build a WordPress plugin tutorial by Nicholas Cerminara.

Plugin file structure created with WordPress Plugin Boilerplate.

License

GNU GENERAL PUBLIC LICENSE – Version 2