2017 © Pedro Peláez
 

wordpress-plugin wp-bcm-manager

BCM manager

image

benjaminmedia/wp-bcm-manager

BCM manager

  • Friday, June 22, 2018
  • by alfhen
  • Repository
  • 11 Watchers
  • 1 Stars
  • 1,708 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 20 % Grown

The README.md

Wordpress bcm manager plugin

When installed it will create a BCM settings page where custom values can be set., (*1)

In order to generate the following meta tags this plugin must be enabled from the settings page., (*2)

Meta tags present

  • bcm-type - required - can be set in settings page
  • bcm-country - required - this will be fetched automatically
  • bcm-brand - required - can be set in settings page
  • bcm-sub - optional - can be set in settings page
  • bcm-tablet-breakpoint - optional - can be set in settings page
  • bcm-mobile-breakpoint - optional - can be set in settings page
  • bcm-title - automatically fetched on article page and overwritten by filter wp_bcm_set_title
  • bcm-content-type - this will be fetched automatically and corresponds to get_fields(get_post()->ID)['kind']
  • bcm-categories - automatically fetched on article page and overwritten by filter wp_bcm_set_categories
  • bcm-tags - automatically fetched on article page and overwritten by filter wp_bcm_set_tags
  • bcm-advertorial-type - this will be fetched automatically and corresponds to get_fields(get_post()->ID)['commercial_type']
  • bcm-advertorial-label - this will be fetched automatically and corresponds to pll__(get_fields(get_post()->ID)['commercial_type'])

Note: The 'commercial_type' field values are presumed to have been registered as string translations., (*3)

Inclusion script

The javascript code will be inserted at wp_footer action and it looks like: <script type="text/javascript" src="https://bcm.interactives.dk/script/#country#/#brand#/#type#"></script>, where all the placeholders will be replaced by correct ones from above listing., (*4)

Country code

This will be fetched from polylang plugin by looking at the current language code and fetching the proper country code. If that is not possible then it will be fetched from current wordpress locale., (*5)

Worpress filters available

  • wp_bcm_set_title ``` php add_filter('wp_bcm_set_title', function($strTitle) { // tamper title return $strTitle; });

- __wp_bcm_set_categories__ ``` php add_filter('wp_bcm_set_categories', function($arrCategories) { // tamper with categories return $arrCategories; });
  • wp_bcm_set_tags ``` php add_filter('wp_bcm_set_tags', function($arrTags) { // tamper with tags return $arrTags; });

- __wp_bcm_set_content_type__ ``` php add_filter('wp_bcm_set_content_type', function($strContentType) { // tamper content type return $strContentType; });
  • wp_bcm_set_advertorial_type php add_filter('wp_bcm_set_advertorial_type', function($arrTags) { // tamper advertorial type return $arrTags; });

The Versions

22/06 2018

dev-master

9999999-dev https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

22/06 2018

v1.1.5

1.1.5.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

22/06 2018

dev-IDEVIV-549/category-pages-bcm-tags

dev-IDEVIV-549/category-pages-bcm-tags https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

07/05 2018

v1.1.4

1.1.4.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

07/05 2018

dev-IDEVIV-516-country-setting

dev-IDEVIV-516-country-setting https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

03/05 2018

v1.1.3

1.1.3.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

23/04 2018

v1.1.2

1.1.2.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

23/04 2018

dev-WILL-460/enable-all-tags-but-dont-show-banners

dev-WILL-460/enable-all-tags-but-dont-show-banners https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

14/06 2017

dev-translation

dev-translation https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

13/06 2017

v1.1.1

1.1.1.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

12/06 2017

v1.1.0

1.1.0.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress

09/06 2017

v1.0.0

1.0.0.0 https://github.com/BenjaminMedia/wp-bcm-manager

BCM manager

  Sources   Download

The Requires

  • php >=5.6

 

plugin wordpress