I am currently working on my wordpress website and I need to multiply answer of a shortcode by 10. Here's the code I am trying -
$first_number = '[affiliates_hits for="month"]';
$second_number = 10;
$sum_total = $second_number * $first_number;
Have you tried doing a
do_shortcode(), since you are trying to hard code this in php.
WordPress Codex Resource: https://developer.wordpress.org/reference/functions/do_shortcode/