[英]How can I add a short PHP code into my PHP file
I have PHP file name functions.php
, I want to insert a code like this $timestamp = time()
; 我有PHP文件名functions.php
,我想插入类似$timestamp = time()
的代码; into 进入
wp_enqueue_style( 'luciferlevi', get_template_directory_uri().'/css/luciferlevi.css', array(), I WANT TO PUT THE $timestamp here , 'all' );
what format or syntax I would use. 我将使用哪种格式或语法。 Thanks. 谢谢。
Just set the variable and put it in the argument list. 只需设置变量并将其放入参数列表即可。
$timestamp = time();
wp_enqueue_style( 'luciferlevi', get_template_directory_uri().'/css/luciferlevi.css', array(), $timestamp, 'all' );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.