Skip to content

Commit 1ae3760

Browse files
committed
Update class-settings.php
1 parent a7beee3 commit 1ae3760

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

includes/class-settings.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function get_settings_sections(): array {
122122
public function init() {
123123
add_action( 'admin_menu', array( $this, 'add_settings_page' ) );
124124
add_action( 'admin_init', array( $this, 'register_settings' ) );
125-
add_action( 'easy_dragdrop_settings_after', array( $this, 'render_marketing_card' ) );
125+
add_action( 'easy_dragdrop_settings_after', array( $this, 'render_marketing_card' ), 10 );
126126

127127
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link' ) );
128128
}
@@ -239,6 +239,10 @@ public function register_settings(): void {
239239
* @return void
240240
*/
241241
public function render_marketing_card(): void {
242+
if ( class_exists( 'ZIORWebDev\\DragDrop\\Pro\\Plugin', true ) ) {
243+
return;
244+
}
245+
242246
$this->load_template( 'marketing', array() );
243247
}
244248

@@ -271,7 +275,7 @@ public function render_settings_page(): void {
271275
public function section_callback(): void {
272276
printf(
273277
'<p>%s</p>',
274-
esc_html__( 'Configure Easy DragDrop File Uploader settings.', 'easy-file-uploader' )
278+
esc_html__( 'Configure the DragDrop uploader settings.', 'easy-file-uploader' )
275279
);
276280
}
277281

0 commit comments

Comments
 (0)