{"id":326839,"date":"2026-06-17T03:17:44","date_gmt":"2026-06-17T03:17:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/earthpulsenow-sunrise-sunset-widget\/"},"modified":"2026-06-17T04:23:12","modified_gmt":"2026-06-17T04:23:12","slug":"solardawn-sunrise-sunset-widget","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/solardawn-sunrise-sunset-widget\/","author":23515033,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.0","stable_tag":"1.2.0","tested":"7.0","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"SolarDawn Sunrise & Sunset Widget","header_author":"Sandun Malinga","header_description":"Displays sunrise, sunset, golden hour, blue hour, twilight, day length, and solar noon times for selected locations.","assets_banners_color":"c5b68a","last_updated":"2026-06-17 04:23:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":32,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.0":{"tag":"1.2.0","author":"sandunmalinga","date":"2026-06-17 04:23:12"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3575245,"resolution":"1544x500","location":"assets","locale":"","width":2203,"height":714}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3575232,"resolution":"1","location":"assets","locale":"","width":712,"height":667},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3575232,"resolution":"2","location":"assets","locale":"","width":1715,"height":1210}},"screenshots":{"1":"Sunrise gradient frontend widget card.","2":"Admin settings page with location, display, theme, and cache options.","3":"Mobile responsive widget layout."}},"plugin_section":[],"plugin_tags":[7964,85294,8892,9185,9186],"plugin_category":[59],"plugin_contributors":[267432],"plugin_business_model":[],"class_list":["post-326839","plugin","type-plugin","status-publish","hentry","plugin_tags-astronomy","plugin_tags-daylight","plugin_tags-solar","plugin_tags-sunrise","plugin_tags-sunset","plugin_category-utilities-and-tools","plugin_contributors-sandunmalinga","plugin_committers-sandunmalinga"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/solardawn-sunrise-sunset-widget_c5b68a.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/solardawn-sunrise-sunset-widget\/assets\/screenshot-1.png?rev=3575232","caption":"Sunrise gradient frontend widget card."},{"src":"https:\/\/ps.w.org\/solardawn-sunrise-sunset-widget\/assets\/screenshot-2.png?rev=3575232","caption":"Admin settings page with location, display, theme, and cache options."}],"raw_content":"<!--section=description-->\n<p>SolarDawn Sunrise &amp; Sunset Widget adds a responsive frontend card for sunrise and sunset information. It works in posts, pages, widget areas, Gutenberg shortcode blocks, and page builders through the <code>[solardawn_sunrise_sunset]<\/code> shortcode.<\/p>\n\n<p>The widget can use a default country\/state\/city dropdown selection, manual latitude\/longitude, shortcode location attributes, or optional visitor country detection by public IP. Sunrise, sunset, twilight, and daylight details are calculated locally from the selected coordinates and timezone, then cached with WordPress transients.<\/p>\n\n<p>Features include:<\/p>\n\n<ul>\n<li>Sunrise and sunset times<\/li>\n<li>Solar noon<\/li>\n<li>Day length<\/li>\n<li>Golden hour morning and evening<\/li>\n<li>Blue hour morning and evening<\/li>\n<li>Civil, nautical, and astronomical twilight<\/li>\n<li>Light, dark, and sunrise gradient themes<\/li>\n<li>Country, state, and city dropdowns generated from the bundled location JSON<\/li>\n<li>Automatic latitude, longitude, and timezone detection from selected locations<\/li>\n<li>Optional visitor country detection, disabled by default<\/li>\n<\/ul>\n\n<h3>Shortcode Examples<\/h3>\n\n<p>Default settings:<\/p>\n\n<pre><code>[solardawn_sunrise_sunset]\n<\/code><\/pre>\n\n<p>Country:<\/p>\n\n<pre><code>[solardawn_sunrise_sunset country=\"Sri Lanka\"]\n<\/code><\/pre>\n\n<p>Country, state, and city without manual coordinates:<\/p>\n\n<pre><code>[solardawn_sunrise_sunset country=\"Sri Lanka\" state=\"Western\" city=\"Colombo\"]\n<\/code><\/pre>\n\n<p>City search within a country:<\/p>\n\n<pre><code>[solardawn_sunrise_sunset country=\"Japan\" city=\"Tokyo\"]\n<\/code><\/pre>\n\n<p>Manual coordinates:<\/p>\n\n<pre><code>[solardawn_sunrise_sunset lat=\"6.9271\" lon=\"79.8612\" timezone=\"Asia\/Colombo\"]\n<\/code><\/pre>\n\n<p>Custom title:<\/p>\n\n<pre><code>[solardawn_sunrise_sunset country=\"United States\" title=\"Today's Sun Times\"]&lt;h3&gt;Privacy&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>This plugin calculates sunrise and sunset data locally from the selected latitude, longitude, timezone, and date.<\/p>\n\n<p>Visitor country detection is disabled by default. When an administrator enables visitor country detection, the plugin sends the visitor IP address to ipapi.co to estimate the visitor's country. If visitor country detection is disabled, no request is sent to ipapi.co.<\/p>\n\n<p>The plugin does not store the full IP address in the database. It stores only a salted hash in the transient key and caches the detected country for 12 hours.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin can use one external service only when an administrator explicitly enables automatic visitor country detection.<\/p>\n\n<p>Service name: ipapi<\/p>\n\n<p>Service URL: <code>https:\/\/ipapi.co\/<\/code><\/p>\n\n<p>Purpose: Used only to estimate the visitor's country when the admin enables automatic visitor country detection.<\/p>\n\n<p>Data sent: The visitor IP address is sent to ipapi.co when country auto-detection is used.<\/p>\n\n<p>When data is sent: Only when the widget\/page loads and the auto-detect country feature is enabled.<\/p>\n\n<p>If auto-detection is disabled, no request is sent to ipapi.co.<\/p>\n\n<p>Terms of Service: <code>https:\/\/ipapi.co\/terms\/<\/code><\/p>\n\n<p>Privacy Policy: <code>https:\/\/ipapi.co\/privacy\/<\/code><\/p>\n\n<h3>Live Demo<\/h3>\n\n<p>You can view a live sunrise and sunset calculator here:<\/p>\n\n<p><a href=\"https:\/\/earthpulsenow.com\/sunrise-sunset\">Live Sunrise and Sunset for your location Calculator<\/a><\/p>\n\n<h3>Zip Packaging Instructions<\/h3>\n\n<ol>\n<li>Confirm the plugin folder is named <code>solardawn-sunrise-sunset-widget<\/code>.<\/li>\n<li>Confirm the main plugin file is <code>solardawn-sunrise-sunset-widget.php<\/code>.<\/li>\n<li>Zip the folder itself, not only the files inside it.<\/li>\n<li>The final zip should contain <code>solardawn-sunrise-sunset-widget\/solardawn-sunrise-sunset-widget.php<\/code> at the top level.<\/li>\n<li>Upload the zip from WordPress Admin &gt; Plugins &gt; Add New &gt; Upload Plugin.<\/li>\n<\/ol>\n\n<h3>Testing Checklist<\/h3>\n\n<ul>\n<li>Activate the plugin on WordPress 5.8 or newer.<\/li>\n<li>Confirm Settings &gt; SolarDawn Sun Widget loads for administrators.<\/li>\n<li>Save settings in country mode and confirm the shortcode renders.<\/li>\n<li>Select a country, state, and city and confirm latitude, longitude, and timezone update automatically.<\/li>\n<li>Test a shortcode with <code>country<\/code>, <code>state<\/code>, and <code>city<\/code> attributes and confirm it renders without manual coordinates.<\/li>\n<li>Save settings in manual coordinate mode and confirm latitude, longitude, and timezone are used.<\/li>\n<li>Confirm visitor country detection is disabled by default.<\/li>\n<li>Enable visitor country detection and confirm the privacy note is visible in settings before using it.<\/li>\n<li>Confirm the widget works in default country mode without calling ipapi.co.<\/li>\n<li>Confirm ipapi.co is contacted only after visitor country detection is enabled.<\/li>\n<li>Confirm the widget renders in a post, page, Gutenberg shortcode block, and widget area.<\/li>\n<li>Check mobile layout below 680px width.<\/li>\n<li>Confirm no hidden footer or header links are added.<\/li>\n<\/ul>\n\n<h3>WordPress.org Submission Checklist<\/h3>\n\n<ul>\n<li>GPLv2 or later license is declared in the plugin header and readme.<\/li>\n<li>No hidden backlinks are present.<\/li>\n<li>No attribution link is rendered by the plugin.<\/li>\n<li>Optional IP geolocation behavior is documented.<\/li>\n<li>Inputs are sanitized and output is escaped.<\/li>\n<li>Admin settings use the WordPress Settings API and nonces from <code>settings_fields()<\/code>.<\/li>\n<li>Remote requests use <code>wp_remote_get()<\/code> only for the opt-in ipapi.co country detection feature.<\/li>\n<li>Assets are enqueued with WordPress APIs.<\/li>\n<li>No external CSS frameworks, font dependencies, or JavaScript libraries are required.<\/li>\n<li>Plugin files are namespaced\/prefixed with <code>solardawn<\/code> or <code>SolarDawn<\/code>.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>solardawn-sunrise-sunset-widget<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate \"SolarDawn Sunrise &amp; Sunset Widget\" from the WordPress Plugins screen.<\/li>\n<li>Go to the SolarDawn Sun Widget menu in wp-admin, or Settings &gt; SolarDawn Sun Widget.<\/li>\n<li>Choose your location mode, display options, theme, and cache duration.<\/li>\n<li>Add <code>[solardawn_sunrise_sunset]<\/code> to a post, page, shortcode block, widget area, or page builder module.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20add%20attribution%20links%3F\"><h3>Does this plugin add attribution links?<\/h3><\/dt>\n<dd><p>No. The plugin does not render attribution links, hidden backlinks, footer links, or header links.<\/p><\/dd>\n<dt id=\"where%20does%20the%20widget%20get%20sunrise%20and%20sunset%20data%3F\"><h3>Where does the widget get sunrise and sunset data?<\/h3><\/dt>\n<dd><p>The widget calculates sunrise, sunset, solar noon, day length, twilight, golden hour, and blue hour locally from the selected latitude, longitude, timezone, and date.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20collect%20personal%20data%3F\"><h3>Does the plugin collect personal data?<\/h3><\/dt>\n<dd><p>The default country dropdown and manual coordinate modes do not send visitor data to third-party services. When visitor country detection is enabled by an administrator, the plugin contacts ipapi.co to estimate the visitor's country from the visitor IP address. The full IP address is not stored in the database; only a salted hash is used in a transient cache key for 12 hours.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20sun%20data%20cannot%20be%20calculated%3F\"><h3>What happens if sun data cannot be calculated?<\/h3><\/dt>\n<dd><p>The widget shows a graceful frontend message and does not expose raw technical errors to visitors.<\/p><\/dd>\n<dt id=\"can%20i%20use%20this%20with%20gutenberg%20or%20page%20builders%3F\"><h3>Can I use this with Gutenberg or page builders?<\/h3><\/dt>\n<dd><p>Yes. Use the shortcode in the Gutenberg shortcode block, classic editor, widget areas, or page builder shortcode modules.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Rebranded the plugin to SolarDawn Sunrise &amp; Sunset Widget.<\/li>\n<li>Changed the text domain and plugin slug references to <code>solardawn-sunrise-sunset-widget<\/code>.<\/li>\n<li>Removed the attribution link feature.<\/li>\n<li>Removed external sunrise\/sunset API settings and now calculate sun data locally.<\/li>\n<li>Documented optional ipapi.co visitor country detection and kept it disabled by default.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Added a visible SolarDawn Sun Widget sidebar menu in wp-admin.<\/li>\n<li>Added a Settings shortcut on the Plugins page.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added country, state, and city location selection from bundled JSON data.<\/li>\n<li>Added automatic latitude, longitude, timezone, and display name resolution from selected locations.<\/li>\n<li>Added shortcode support for <code>state<\/code> and <code>city<\/code> attributes.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display sunrise, sunset, day length, solar noon, golden hour, blue hour, and twilight times for selected locations.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/326839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=326839"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sandunmalinga"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=326839"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=326839"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=326839"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=326839"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=326839"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=326839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}