- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
| { | |
| "meta": { | |
| "theme": "professional" | |
| }, | |
| "basics": { | |
| "name": "Thomas Davis", | |
| "phone": "041102102", | |
| "label": "Web Developer", | |
| "image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4", | |
| "summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focused developer who prioritizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ", |
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
| <?php | |
| //https://core.telegram.org/bots/api?utm_source=botlist#sendmessage | |
| $bot_token = '99999999999:AFDSDSDSDS_nbdfdgDSFDSFGFbcvbfghdfhU'; // токен бота | |
| $img = '<a href="https://site.ru/img_fon/2.jpg">‍</a>'; // урл картинки в ссылке | |
| $tg_url = '<a href="'.$url_post.'" target="_blank">'.$title.'</a> | |
| '; // отступ нужен |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /* | |
| * Plugin Name: WooCommerce Add Taxonomy to Export | |
| * Plugin URI: https://gist.github.com/helgatheviking/114c8df50cabb7119b3c895b1d854533/ | |
| * Description: Add a custom taxonomy to WooCommerce import/export. | |
| * Version: 1.0.1 | |
| * Author: Kathy Darling | |
| * Author URI: https://kathyisawesome.com/ | |
| * | |
| * Woo: 18716:fbca839929aaddc78797a5b511c14da9 |
Make sure these boxes are checked before submitting/approving the PR
| <?php | |
| // https://gist.github.com/evgrezanov/44c03e61ea5a68b5c6ed507f12f57c02 | |
| add_action( 'pmxi_saved_post', 'mst_company_jobs_mapping', 10, 1); | |
| function mst_company_jobs_mapping($post_id){ | |
| $import_id = ( isset( $_GET['id'] ) ? $_GET['id'] : ( isset( $_GET['import_id'] ) ? $_GET['import_id'] : 'new' ) ); | |
| if ( $import_id == '161' || $import_id == '145') : | |
| global $wpdb; | |
| // choоse table | |
| $is_test = false; |
| <?php | |
| add_action( 'pmxi_saved_post', 'mst_company_jobs_mapping', 10, 1); | |
| function mst_company_jobs_mapping($post_id){ | |
| $import_id = ( isset( $_GET['id'] ) ? $_GET['id'] : ( isset( $_GET['import_id'] ) ? $_GET['import_id'] : 'new' ) ); | |
| if ( $import_id == '161' || $import_id == '145') : | |
| global $wpdb; | |
| // choоse table | |
| $is_test = false; | |
| if ($is_test): |
| <?php | |
| // https://gist.github.com/evgrezanov/2045bef6d5f1f904bef71b2423d62aeb | |
| // add this function to your theme functions.php | |
| // start | |
| add_filter('wprss_ftp_post_meta', 'mybl_custom_post_meta', 10, 4); | |
| function mybl_custom_post_meta($meta, $post_id, $feed_source, $feed_item){ | |
| $feed = $feed_item->get_feed(); | |
| $date = $feed_item->get_date('Y-m-d'); | |
| $meta['!post-type'] = array( |