- 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":.+?,'
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( |
<?php | |
//filter query before request (company with open jobs, pagination, terms matches) | |
add_filter( 'wpv_filter_query', 'show_only_hiring_now_companies', 99, 3 ); | |
function show_only_hiring_now_companies( $query_args, $view_settings, $view_id ) { | |
if ( $view_id == 72 ){ | |
// post per pagination page | |
$post_per_page = 9; | |
$query_args['posts_per_page'] = $post_per_page; |