Skip to content

Commit

Permalink
added upgrade to pro link in plugin lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat1192 committed Nov 25, 2024
1 parent edc5ad8 commit 3e21a43
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion import-eventbrite-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,17 @@ public function iee_setting_doc_links( $links ) {
esc_html__( 'Docs', 'import-eventbrite-events' )
),
);
return array_merge( $links, $iee_setting_doc_link );

$upgrate_to_pro = array();
if( !iee_is_pro() ){
$upgrate_to_pro = array( 'iee-event-pro-link' => sprintf(
'<a href="%s" target="_blank" style="color:#1da867;font-weight: 900;">%s</a>',
esc_url( 'https://xylusthemes.com/plugins/import-eventbrite-events/' ),
esc_html__( 'Upgrade to Pro', 'import-eventbrite-events' )
) ) ;
}

return array_merge( $links, $iee_setting_doc_link, $upgrate_to_pro );
}

/**
Expand Down

0 comments on commit 3e21a43

Please sign in to comment.