• Resolved fishnyc22

    (@fishnyc22)


    Hey there. Can you help me with understanding what is possible with Actions and Filters. I don’t see anything in the FAQ or documents.

    Also I’m trying to test this with weather pulled in from my template (not using an event calendar) by using “do_shortcode()” but its not working. Any ideas?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Clifford Paulick

    (@cliffpaulick)

    Hi. If you tell me what you’re wanting to accomplish and what code you’ve already tried, I can try to point you in the right direction.

    Thread Starter fishnyc22

    (@fishnyc22)

    Hey Clifford. Thanks for the reply. Really cool plugin!

    I’m new to DarkSky. I’m using it for project management app that I’m building for a client to pull in current and past weather. The data I was asked to show on the page is:
    High/Low temp, Average temp, Precipitation, Wind, and Sky (cloudy, fog, etc).
    This would be for the current day and for past days where the client has made a “daily log”.

    DarkSky didn’t have a PHP library, then I saw your plugin and really liked that it used Transients API to minimizes calls. I stared playing around with it. I was wondering if I can pull those values above with your plugin somehow. Long shot I’m sure but figured it’s worth asking.

    Thanks again for the reply.

    Plugin Author Clifford Paulick

    (@cliffpaulick)

    I’m glad you like it ??

    Without coding it myself or seeing the code you already have, I can’t really advise other than suggesting you look at the plugin’s code, specifically the shortcode arguments. Then, whatever you pass through to the shortcode (and then wrap with do_shortcode()) should be handled fine.

    FYI: I’m releasing an updated version soon that will support multi-day forecasts (each day costs a single API request, each day gets cached via transients), but none of the existing shortcode arguments should change.

    Plugin Author Clifford Paulick

    (@cliffpaulick)

    @fishnyc22

    Version 1.5.0 included support for multi-day forecasts and was released November 21, 2017.

    Hope you get some good use from it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Actions and Filters documentation’ is closed to new replies.