PluginProbe ʕ •ᴥ•ʔ
WP Job Manager / 2.4.7
WP Job Manager v2.4.7
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.1.3 1.10.0 1.11.0 1.11.1 1.12.0 1.12.1 1.13.0 1.14.0 1.15.0 1.16.0 1.16.1 1.17.0 1.18.0 1.19.0 1.2.0 1.20.0 1.20.1 1.21.0 1.21.1 1.21.2 1.21.3 1.21.4 1.22.0 1.22.1 1.22.2 1.22.3 1.23.0 1.23.1 1.23.10 1.23.11 1.23.12 1.23.13 1.23.2 1.23.3 1.23.4 1.23.5 1.23.6 1.23.7 1.23.8 1.23.9 1.24.0 1.24.0.1 1.25.0 1.25.0.1 1.25.1 1.25.1.1 1.25.2 1.25.2.1 1.25.3 1.25.3.1 1.26.0 1.26.0.1 1.26.1 1.26.1.1 1.26.2 1.26.2.1 1.27.0 1.27.0.1 1.28.0 1.28.0.1 1.29.0 1.29.0.1 1.29.1 1.29.1.1 1.29.2 1.29.2.1 1.29.3 1.29.3.1 1.3.0 1.3.1 1.30.0 1.30.0.1 1.30.1 1.30.1.1 1.30.2 1.30.2.1 1.31.0 1.31.0.1 1.31.1 1.31.1.1 1.31.2 1.31.3 1.32.0 1.32.1 1.32.2 1.32.3 1.33.0 1.33.1 1.33.2 1.33.3 1.33.4 1.33.5 1.34.0 1.34.1 1.34.2 1.34.3 1.34.4 1.34.5 1.35.0 1.35.1 1.35.2 1.35.3 1.36.0 1.36.1 1.36.2 1.37.0 1.38.0 1.38.1 1.39.0 1.4.0 1.40.0 1.40.1 1.40.2 1.41.0 1.42.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.7.1 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 1.9.1 1.9.2 1.9.3 2.0.0 2.1.0 2.1.1 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.4.1
wp-job-manager / includes / admin / class-release-notice.php
wp-job-manager / includes / admin Last commit date
views 2 years ago class-notices-conditions-checker.php 2 years ago class-release-notice.php 2 weeks ago class-wp-job-manager-addons-landing-page.php 2 years ago class-wp-job-manager-addons.php 2 years ago class-wp-job-manager-admin-notices.php 2 weeks ago class-wp-job-manager-admin.php 2 months ago class-wp-job-manager-cpt.php 2 years ago class-wp-job-manager-permalink-settings.php 2 years ago class-wp-job-manager-promoted-jobs-admin.php 2 months ago class-wp-job-manager-settings.php 2 months ago class-wp-job-manager-setup.php 2 years ago class-wp-job-manager-taxonomy-meta.php 6 years ago class-wp-job-manager-writepanels.php 2 years ago
class-release-notice.php
93 lines
1 <?php
2 /**
3 * File containing the class \WP_Job_Manager\Admin\Release_Notice.
4 *
5 * @package wp-job-manager
6 */
7
8 namespace WP_Job_Manager\Admin;
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 /**
15 * Admin notice about changes and new features introduced in the latest release.
16 * Update this class for each release to highlight new features or changes.
17 */
18 class Release_Notice {
19 public const NOTICE_ID = 'release_notice_2_3_0';
20
21 /**
22 * Set up notice.
23 */
24 public static function init() {
25 add_filter( 'wpjm_admin_notices', [ __CLASS__, 'add_release_notice' ] );
26 add_action( 'job_manager_action_enable_stats', [ self::class, 'enable_feature' ] );
27 }
28
29 /**
30 * Enable the highlighted feature.
31 *
32 * @return void
33 */
34 public static function enable_feature() {
35 \WP_Job_Manager_Settings::instance()->set_setting( \WP_Job_Manager\Stats::OPTION_ENABLE_STATS, '1' );
36 }
37
38 /**
39 * Add a release notice for the 2.3.0 release.
40 *
41 * @param array $notices
42 *
43 * @return array
44 */
45 public static function add_release_notice( $notices ) {
46
47 // Make sure to update the version number in the notice ID when changing this notice for a new release.
48 $action_url = \WP_Job_Manager_Admin_Notices::get_action_url( 'enable_stats', self::NOTICE_ID );
49 $notices[ self::NOTICE_ID ] = [
50 'type' => 'site-wide',
51 'heading' => 'Job Statistics',
52 'message' => '<div>' . __(
53 '
54 <p>Collect analytics about site visitors for each job listing. Display the detailed statistics in the refreshed jobs dashboard.</p>
55 <ul>
56 <li>Tracks page views and unique visitors, search impressions and apply button clicks.</li>
57 <li>Adds a new overlay to the employer dashboard with aggregated statistics and a daily breakdown chart.</li>
58 <li>Integrates with Job Alerts, Applications, and Bookmarks extensions.</li>
59 <li>GDPR-compliant, with no personal user information collected.</li>
60 </ul>
61 ',
62 'wp-job-manager'
63 ) . '</div>',
64 'actions' => [
65 [
66 'label' => __( 'Enable', 'wp-job-manager' ),
67 'url' => $action_url,
68 'primary' => true,
69 ],
70 [
71 'label' => __( 'Dismiss', 'wp-job-manager' ),
72 'url' => \WP_Job_Manager_Admin_Notices::get_dismiss_url( self::NOTICE_ID ),
73 'primary' => false,
74 ],
75 ],
76 'icon' => false,
77 'level' => 'landing',
78 'image' => false,
79 'dismissible' => false,
80 'extra_details' => '',
81 'conditions' => [
82 [
83 'type' => 'screens',
84 'screens' => [ 'edit-job_listing' ],
85 ],
86 ],
87 ];
88
89 return $notices;
90 }
91
92 }
93