PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
← All changes | classes/Options.php +3 -12 2.1.22.2.5 View file →
@@ -5,11 +5,9 @@
5 5
6 6 class Options{
7 7 public function __construct() {
8 8 add_action( 'admin_menu', array( $this, 'menu_page_callback' ) );
9 - add_action( 'admin_init', array( $this, 'register_settings' ) );
10 9 add_action( 'in_admin_header', array($this, 'remove_all_notices') );
11 -
12 10 add_filter( 'plugin_row_meta', array( $this, 'plugin_settings_meta' ), 10, 2 );
13 11 add_filter( 'plugin_action_links_'.ULTP_BASE, array( $this, 'plugin_action_links_callback' ) );
14 12 }
15 13
@@ -18,9 +16,9 @@
18 16 if ( strpos( $file, 'ultimate-post.php' ) !== false ) {
19 17 $new_links = array(
20 18 'ultp_docs' => '<a href="https://docs.wpxpo.com/" target="_blank">'.__('Docs', 'ultimate-post').'</a>',
21 19 'ultp_tutorial' => '<a href="https://www.youtube.com/watch?v=JZxIflYKOuM&list=PLPidnGLSR4qcAwVwIjMo1OVaqXqjUp_s4" target="_blank">'.__('Tutorials', 'ultimate-post').'</a>',
22 - 'ultp_support' => '<a href="https://www.wpxpo.com/contact/?utm_campaign=go_premium" target="_blank">'.__('Support', 'ultimate-post').'</a>'
20 + 'ultp_support' => '<a href="'.ultimate_post()->get_premium_link( 'https://www.wpxpo.com/contact/' ).'" target="_blank">'.__('Support', 'ultimate-post').'</a>'
23 21 );
24 22 $links = array_merge( $links, $new_links );
25 23 }
26 24 return $links;
@@ -31,9 +29,9 @@
31 29 $upgrade_link = array();
32 30 $setting_link = array();
33 31 if(!defined('ULTP_PRO_VER')){
34 32 $upgrade_link = array(
35 - 'ultp_pro' => '<a href="https://www.wpxpo.com/gutenberg-post-blocks/?utm_campaign=go_premium" target="_blank"><span style="color: #e83838; font-weight: bold;">'.__('Go Pro', 'ultimate-post').'</span></a>'
33 + 'ultp_pro' => '<a href="'.ultimate_post()->get_premium_link().'" target="_blank"><span style="color: #e83838; font-weight: bold;">'.__('Go Pro', 'ultimate-post').'</span></a>'
36 34 );
37 35 }
38 36 $setting_link['ultp_settings'] = '<a href="'. menu_page_url('ultp-option-settings', false) .'">'. __('Settings', 'wp-megamenu') .'</a>';
39 37 return array_merge( $setting_link, $links, $upgrade_link);
@@ -62,9 +60,9 @@
62 60 new \ULTP\Options_Contact();
63 61
64 62 if( !function_exists('ultimate_post_pro') ){
65 63 global $submenu;
66 - $upgrade_link = 'https://www.wpxpo.com/gutenberg-post-blocks/?ultp=plugins';
64 + $upgrade_link = ultimate_post()->get_premium_link( 'https://www.wpxpo.com/postx/?ultp=plugins' );
67 65 $submenu['ultp-settings'][] = array( '<span class="ultp-dashboard-upgrade"><span class="dashicons dashicons-update"></span> Upgrade</span>', 'manage_options', $upgrade_link );
68 66 }
69 67 }
70 68
@@ -73,14 +71,7 @@
73 71 if ( isset( $_GET['page'] ) && ( $_GET['page'] === 'ultp-settings' || $_GET['page'] === 'ultp-features' || $_GET['page'] === 'ultp-addons' || $_GET['page'] === 'ultp-option-settings' || $_GET['page'] === 'ultp-contact' || $_GET['page'] === 'ultp-license' ) ) {
74 72 remove_all_actions( 'admin_notices' );
75 73 remove_all_actions( 'all_admin_notices' );
76 74 }
77 - }
78 -
79 - /**
80 - * Register a setting and its sanitization callback.
81 - */
82 - public static function register_settings() {
83 - register_setting( 'ultp_options', 'ultp_options', array( self::class, 'sanitize' ) );
84 75 }
85 76 }
86 77