Download the PHP package carawebs/address without Composer
On this page you can find all versions of the php package carawebs/address. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download carawebs/address
More information about carawebs/address
Files in carawebs/address
Download carawebs/address
More information about carawebs/address
Files in carawebs/address
Vendor carawebs
Package address
Short Description A WordPress plugin which allows users to set address & contact data.
License MIT
Homepage https://github.com/DavidCWebs/address
Package address
Short Description A WordPress plugin which allows users to set address & contact data.
License MIT
Homepage https://github.com/DavidCWebs/address
Keywords wordpress
Please rate this library. Is it a good library?
Informations about the package address
Address WordPress Plugin
Work in Progress. Use at your own risk.
Adds an option page to add Physical address data to the options table of the database.
Builds the address data into a HTML block that is properly marked up according to schema.org.
Uses the WP Plugin Boilerplate.
Installation
- Clone this repo to the
/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- Add address data to your site: Dashboard >> Settings >> Address & Contact
- Place `` in your templates
- Use the shortcode
[address]
in the content area
Available Filters
Filter Hook | Value | Variables |
---|---|---|
'carawebs_address_open_div' |
'<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">' |
- |
'carawebs_address_business_name' |
'<h3><span itemprop="name">' . $business_name . '</span></h3>' |
$business_name |
'carawebs_address_line_1' |
'<span itemprop="streetAddress">' . $address_line_1 . '</span><br />' |
$address_line_1 |
'carawebs_address_line_2' |
'<span itemprop="streetAddress">' . $address_line_2 . '</span><br />' |
$address_line_2 |
'carawebs_address_town' |
'<span itemprop="addressLocality">' . $town . '</span><br />' |
$town |
'carawebs_address_county' |
'<span itemprop="addressLocality">' . $address['county'] . '</span><br />' |
$county |
'carawebs_address_country' |
'<span itemprop="addressCountry">' . $country . '</span><br />' |
$country |
'carawebs_address_postcode' |
'<span itemprop="postalCode">' . $postcode . '</span>' |
$postcode |
'carawebs_address_close_div' |
'</div>' |
- |
Example Filter
The 'carawebs_address_business_name' filter receives two parameters:
'<h3><span itemprop="name">' . $business_name . '</span></h3>'
$business_name
An sample use of this filter within a theme would be:
Changelog
1.0
- First Commit.
All versions of address with dependencies
PHP Build Version
Package Version
The package carawebs/address contains the following files
Loading the files please wait ....