Skip to content

Commit

Permalink
PD-283 Update links on Go Pro buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed Nov 9, 2023
1 parent cdd36e9 commit c680c6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/admin-menus/class-manage-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function enqueue_menu_button_css() {
* @return void
*/
public function load_upgrade_menu() {
wp_safe_redirect( 'https://codesnippets.pro/pricing' );
wp_safe_redirect( 'https://snipco.de/JE2f' );
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion php/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function plugin_action_links( array $actions, string $plugin_file ): arra
[
sprintf(
'<a href="%1$s" title="%2$s" style="color: #d46f4d; font-weight: bold;" target="_blank">%3$s</a>',
'https://codesnippets.pro/pricing/',
'https://snipco.de/JE2i',
esc_attr__( 'Upgrade to Code Snippets Pro', 'code-snippets' ),
esc_html__( 'Go Pro', 'code-snippets' )
),
Expand Down
1 change: 1 addition & 0 deletions php/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ public function get_snippet_edit_url( int $snippet_id, string $context = 'self'
*/
public function allow_code_snippets_redirect( array $hosts ): array {
$hosts[] = 'codesnippets.pro';
$hosts[] = 'snipco.de';
return $hosts;
}

Expand Down

0 comments on commit c680c6f

Please sign in to comment.