有没有办法在 PhpStorm 模板中设置变量,感谢配置文件?



在PhpStorm中,我正在使用Apache速度做这个php文件模板:

Php 模板

<?php
defined( 'ABSPATH' ) || exit;
use function $plugin_name_namespaceCoreget_current_plugin_domain;
printf( '<article class="post-entry-content">' );
if ( has_post_thumbnail() ) {
printf( '<a class="post-thumbnail-link" href="%s">%s</a>',
get_the_permalink(),
get_the_post_thumbnail()
);
}
echo '<div class="post-content">';
printf( '<h4 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h4>',
get_the_permalink(),
get_the_title(),
get_the_title()
);
printf( '<div class="entry-excerpt">%s</div>' ,get_the_excerpt() );
printf('<a href="%s" class="details-link button" rel="nofollow">%s</a>',
get_the_permalink(),
__( "See More", get_current_plugin_domain() )
);
echo '</div>';
echo '</article>';
?>

我想用 apache 速度来设置$plugin_name_namespace配置文件(.ini,.env ...无论什么(

或。。

以使用配置文件中的值动态填充模板。

有没有办法做到这一点?

目前不可能,请投票给 IDEA-217553 以通知此功能的任何进展

最新更新