{"id":7431,"date":"2009-12-06T15:02:40","date_gmt":"2009-12-06T15:02:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/contact\/"},"modified":"2014-10-09T10:43:02","modified_gmt":"2014-10-09T10:43:02","slug":"contact","status":"publish","type":"plugin","link":"https:\/\/sa.wordpress.org\/plugins\/contact\/","author":9173491,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.8.1","stable_tag":"0.8.1","tested":"4.0.38","requires":"3.9","requires_php":"","requires_plugins":"","header_name":"Contact","header_author":"StvWhtly","header_description":"","assets_banners_color":"f9f9f9","last_updated":"2017-11-28 16:12:03","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=GP9YMEPUGV24A","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/contact\/","header_author_uri":"http:\/\/stv.whtly.com","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":113422,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"617286","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.2","0.3","0.4","0.4.1","0.4.2","0.4.3","0.5","0.6","0.7","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.8.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1777066","resolution":"1","location":"plugin"}},"screenshots":{"1":"The contact details management page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[360,4557,2981,4473,2218],"plugin_category":[41,42,49],"plugin_contributors":[79552],"plugin_business_model":[],"class_list":["post-7431","plugin","type-plugin","status-publish","hentry","plugin_tags-contact","plugin_tags-details","plugin_tags-global","plugin_tags-info","plugin_tags-options","plugin_category-communication","plugin_category-contact-forms","plugin_category-maps-and-location","plugin_contributors-stvwhtly","plugin_committers-stvwhtly"],"banners":{"banner":"https:\/\/ps.w.org\/contact\/assets\/banner-772x250.png?rev=617286","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/contact_f9f9f9.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/contact\/trunk\/screenshot-1.png?rev=1777066","caption":"The contact details management page."}],"raw_content":"<!--section=description-->\n<p>Adds the ability to enter contact information and output the details in your posts, pages or templates.<\/p>\n\n<p>Use the shortcode <code>[contact type=\"phone\"]<\/code> to display any of the contact details, or use the function call <code>&lt;?php if ( function_exists( 'contact_detail' ) ) { contact_detail( 'phone' ); } ?&gt;<\/code>.<\/p>\n\n<p>Once you have defined a contact email address, use the shortcode <code>[contact type=\"form\"]<\/code> to output the contact form.<\/p>\n\n<p><strong>Languages:<\/strong> Also available in Espa\u00f1ol (Spanish) and \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 (Ukrainian by Michael Yunat).<\/p>\n\n<!--section=installation-->\n<p>Here we go:<\/p>\n\n<ol>\n<li>Upload the <code>contact<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Enter you contact details on the options page <code>Settings &gt; Contact Details<\/code>.<\/li>\n<li>Display the details using either the shortcodes or function calls.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>Here we go:<\/p>\n\n<ol>\n<li>Upload the <code>contact<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Enter you contact details on the options page <code>Settings &gt; Contact Details<\/code>.<\/li>\n<li>Display the details using either the shortcodes or function calls.<\/li>\n<\/ol><\/dd>\n<dt>How do I edit my contact details?<\/dt>\n<dd><p>Navigate to the settings page by clicking on <code>Settings<\/code> on the left hand menu, and then the <code>Contact Details<\/code> option.<\/p><\/dd>\n<dt>Can I add extra contact details fields?<\/dt>\n<dd><p>Yes, it is possible to modify the contact detail fields using the <code>contact_details<\/code> filter.<\/p>\n\n<pre><code>add_filter( 'contact_details', function( $details ) {\n    \/\/ Add a simple text input...\n    $details['twitter'] = __( 'Twitter' );\n    \/\/ Add a new textarea...\n    $details['bank'] = array(\n        'label' =&gt; __( 'Bank' ),\n        'input' =&gt; 'textarea'\n    );\n    \/\/ Remove an existing field...\n    unset( details['fax'] );\n    \/\/ You must always return the modified array...\n    return $details;\n} );\n<\/code><\/pre><\/dd>\n<dt>What contact details can I store?<\/dt>\n<dd><p>Current available contact fields are: <code>phone<\/code>, <code>fax<\/code>, <code>mobile<\/code>, <code>email<\/code> and <code>address<\/code>.<\/p><\/dd>\n<dt>How do I include details in my template?<\/dt>\n<dd><p>You can use the following function call to output details in your templates:<\/p>\n\n<\/dd>\n<dt>How do you fetch contact details without outputting the value?<\/dt>\n<dd><p>The fourth parameter passed to <code>contact_detail()<\/code> determines whether the value is returned, by setting the value to false.<\/p>\n\n<pre><code>$phone = contact_detail( 'phone', '&lt;b&gt;', '&lt;\/b&gt;', false );\n<\/code><\/pre>\n\n<p>The above code will fetch the phone number stored and wrap the response in bold tags.<\/p><\/dd>\n<dt>How can I customise the contact form?<\/dt>\n<dd><p>If you require more customisation that cannot be achieved using CSS, you can define your own template file.<\/p>\n\n<p>To do this add the the attribute <code>include<\/code> to the shortcode tag, e.g. <code>[contact type=\"form\" include=\"myfile.php\"]<\/code>.<\/p>\n\n<p>This file should be placed within your theme directory and should include the processing and output of errors.<\/p>\n\n<p>I suggest you use the <code>contact.php<\/code> file used by the plugin as a starting point \/ template.<\/p><\/dd>\n<dt>Can I translate your plugin to another language?<\/dt>\n<dd><p>Yes, of course. If you would like to translate this plugin to another language, please provide me with the releavant Poedit files.<\/p>\n\n<p>I will be certain to include and attribute any contributions to those who provide any translations.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.8.1<\/h4>\n\n<ul>\n<li>Readme changes to language list.<\/li>\n<li>Set from email as sender email.<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>Introduced <code>contact-send<\/code> filter.<\/li>\n<li>Ability to disable spamcheck via shortcode using <code>spamcheck=\"false\"<\/code>.<\/li>\n<\/ul>\n\n<h4>0.7.7<\/h4>\n\n<ul>\n<li>Added Ukrainian (uk_UA) language translation.<\/li>\n<li>Allow for additional attributes to be passed through to template files.<\/li>\n<\/ul>\n\n<h4>0.7.6<\/h4>\n\n<ul>\n<li>Re-added email address to settings page, lost during recent update.<\/li>\n<li>Modified upgrade process to work now that register_activation_hook no longer fires for plugin updates.<\/li>\n<\/ul>\n\n<h4>0.7.5<\/h4>\n\n<ul>\n<li>Corrected new contributor name.<\/li>\n<\/ul>\n\n<h4>0.7.4<\/h4>\n\n<ul>\n<li>Removed old plugin contributor and author details.<\/li>\n<\/ul>\n\n<h4>0.7.3<\/h4>\n\n<ul>\n<li>Resolving the SVN mix-up tagging versions.<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>Integration of i18n abilities, using Spanish (es_ES) as an example.<\/li>\n<li>Added the ability to modify the fields shown to the details page.<\/li>\n<li>Updated donate link ;)<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Bug fix to shortcode function call that displays contact details.<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>Integrated Akismet to check for SPAM submissions. (Requires Akismet Plugin) <\/li>\n<li>Improved input \/ output escaping and added nonce field to contact form.<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Added functionality to include a website url as part of the email form.<\/li>\n<li>Submitted comments are now checked against the simple blacklist.<\/li>\n<li>Updated use of user levels (deprecated) to user roles and capabilities.<\/li>\n<li>Contact email address defaults to site admin email.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Added ability to include custom form template.<\/li>\n<\/ul>\n\n<h4>0.4.3<\/h4>\n\n<ul>\n<li>Added class names to contact form rows to allow easier customisation.<\/li>\n<\/ul>\n\n<h4>0.4.2<\/h4>\n\n<ul>\n<li>Fixed PHP warning on settings page if no options existed.<\/li>\n<\/ul>\n\n<h4>0.4.1<\/h4>\n\n<ul>\n<li>Fixed form input ids and labels.<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Added contact form.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Fixed errors when error reporting is set to all.<\/li>\n<li>Added details screenshot.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>The function <code>contact_details<\/code> now outputs by default instead of having to echo the response.<\/li>\n<li>Function calls now includes before, after and echo options.<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Updated\/Corrected plugin name.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>This is the very first version.<\/li>\n<\/ul>","raw_excerpt":"Adds the ability to easily enter and display contact information.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7431"}],"author":[{"embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stvwhtly"}],"wp:attachment":[{"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7431"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7431"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7431"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7431"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7431"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}