簡體   English   中英

如何在我的PHP文件中添加簡短的PHP代碼

[英]How can I add a short PHP code into my PHP file

我有PHP文件名functions.php ,我想插入類似$timestamp = time()的代碼; 進入

wp_enqueue_style( 'luciferlevi', get_template_directory_uri().'/css/luciferlevi.css', array(), I WANT TO PUT THE $timestamp here , 'all' );

我將使用哪種格式或語法。 謝謝。

只需設置變量並將其放入參數列表即可。

$timestamp = time();
wp_enqueue_style( 'luciferlevi', get_template_directory_uri().'/css/luciferlevi.css', array(), $timestamp, 'all' );

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM