This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '<a href="mailto:[email protected]?subject='.get_the_title( get_the_ID() ).'">Pošalji email</a>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_2_weeks', 99, 1 ); | |
| function keep_me_logged_in_for_2_weeks( $expire ) { | |
| return 1209600; // 2 weeks in seconds | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| some code... | |
| */ | |
| function imagesFunc(agent) { | |
| const sticker_id = agent.request_.body.originalDetectIntentRequest.payload.data.message.sticker_id; // get "sticker_id" | |
| if (sticker_id != undefined) { // it's a sticker | |
| agent.add("That is nice sticker!"); // send answer to user | |
| } else { // it is not a sticker | |
| agent.add("Thank you for image!"); // send answer to user | |
| } |
NewerOlder