Skip to content

Commit

Permalink
Included new filter wpcrm_system_single_calendar_entry to enable cust…
Browse files Browse the repository at this point in the history
…om formatting of individual calendar entries.
  • Loading branch information
ScottDeLuzio committed Apr 15, 2020
1 parent 19ab3fb commit bd6091c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion includes/wcs-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ function wpcrm_system_display_calendar( $types, $month, $year ){
$icon = '';
break;
}
$calendar .= '<li>' . $icon . '<a href="' . get_edit_post_link() . '">' . get_the_title() . '</a></li>';
$line_item = '<li>' . $icon . '<a href="' . get_edit_post_link() . '">' . get_the_title() . '</a></li>';
$filtered_line_item = apply_filters( 'wpcrm_system_single_calendar_entry', $line_item, get_the_ID(), $icon );
$calendar .= $filtered_line_item;
} // end while
} else {
// end if
Expand Down
10 changes: 6 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: scott.deluzio
Tags: WordPress CRM, Free CRM for WordPress, CRM, Free WordPress CRM, CRM for WordPress, gdpr
Requires at least: 3.3.0
Tested up to: 5.3.0
Stable tag: 3.1.3
Tested up to: 5.4.0
Stable tag: 3.1.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -91,6 +91,8 @@ Absolutely. There are inexpensive extensions that allow you to import as little
Your data is only accessible through the WordPress CRM dashboard. None of it will be accessible through the public facing portion of your website unless you are using our GDPR features (see above). This allows you to provide access to as few or as many people as you need to.

== Changelog ==
= 3.1.4 =
* Update: Included new filter `wpcrm_system_single_calendar_entry` to enable custom formatting of individual calendar entries.
= 3.1.3 =
* Fix: New site setup by a super administrator on a multisite subsite caused fatal error when saving initial settings.
= 3.1.2 =
Expand Down Expand Up @@ -364,5 +366,5 @@ Your data is only accessible through the WordPress CRM dashboard. None of it wil
* Initial Release

== Upgrade Notice ==
= 3.1.3 =
* Fix: New site setup by a super administrator on a multisite subsite caused fatal error when saving initial settings.
= 3.1.4 =
* Update: Included new filter `wpcrm_system_single_calendar_entry` to enable custom formatting of individual calendar entries.
4 changes: 2 additions & 2 deletions wp-crm-system.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WP-CRM System
Plugin URI: https://www.wp-crm.com
Description: A complete CRM for WordPress
Version: 3.1.3
Version: 3.1.4
Author: Scott DeLuzio
Author URI: https://www.wp-crm.com
Text Domain: wp-crm-system
Expand Down Expand Up @@ -34,7 +34,7 @@ function wp_crm_plugin_init() {
define( 'WP_CRM_SYSTEM', __FILE__ );
}
if ( ! defined( 'WP_CRM_SYSTEM_VERSION' ) ) {
define( 'WP_CRM_SYSTEM_VERSION', '3.1.3' );
define( 'WP_CRM_SYSTEM_VERSION', '3.1.4' );
}
if( ! defined( 'WP_CRM_SYSTEM_URL' ) ) {
define( 'WP_CRM_SYSTEM_URL', plugins_url( '', __FILE__ ) );
Expand Down

0 comments on commit bd6091c

Please sign in to comment.