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
| <?php | |
| ## Добавлет/обновляет количество кликов по ссылке из метаполя 'comp_ref' в метаполе 'comp_ref_clicks' | |
| //do_action('kcc_count_after', $args, $updated, $data ); | |
| add_action( 'kcc_count_after', 'write_postmeta_link_clicks' ); | |
| function write_postmeta_link_clicks( $args ){ | |
| $post_id = (int) $args['in_post']; | |
| if( | |
| // пост не указан - не наш случай |
NewerOlder