is_active() || ! $this->is_loaded() ) { return false; } $activated = $this->get_site_option( 'ihaf_activated' ); return is_array( $activated ) && ! empty( $activated['wpcode'] ); } /** * Whether the snippet library API this plugin renders cards from is * available, which needs a newer WPCode than mere activation implies. * * @since 4.10.0 * * @return bool */ public function has_snippet_library(): bool { return function_exists( 'wpcode_get_library_snippets_by_username' ); } /** * The plugin's own settings screen. * * @since 4.10.0 * * @return string */ public function get_setup_url(): string { return admin_url( 'admin.php?page=wpcode' ); } }