> $plugins Plugins Array. * @return array> */ public function plugins_page( $plugins ) { if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) { return $plugins; } if ( ! isset( $plugins[ ASTRA_PRO_SITES_BASE ] ) ) { return $plugins; } // Set White Labels. $name = self::get_option( 'astra-sites', 'name' ); $description = self::get_option( 'astra-sites', 'description' ); $author = self::get_option( 'astra-agency', 'author' ); $author_uri = self::get_option( 'astra-agency', 'author_url' ); if ( ! empty( $name ) ) { $plugins[ ASTRA_PRO_SITES_BASE ]['Name'] = $name; // Remove Plugin URI if Agency White Label name is set. $plugins[ ASTRA_PRO_SITES_BASE ]['PluginURI'] = ''; } if ( ! empty( $description ) ) { $plugins[ ASTRA_PRO_SITES_BASE ]['Description'] = $description; } if ( ! empty( $author ) ) { $plugins[ ASTRA_PRO_SITES_BASE ]['Author'] = $author; } if ( ! empty( $author_uri ) ) { $plugins[ ASTRA_PRO_SITES_BASE ]['AuthorURI'] = $author_uri; } return $plugins; } } /** * Kicking this off by calling 'set_instance()' method */ Astra_Pro_Sites_White_Label::set_instance(); endif;