我如何在不修改页脚的情况下从twentyeleven中删除“由WordPress提供强大支持”。php,而不创建子主题?
我正在寻找一个php命令,例如add_action
, remove_action
, add_filter
, 或者类似的东西。
我不是在寻找CSS来隐藏页脚。
我不想修改任何主题文件,除了functions.php
这可能吗?下面是创建此项的页脚中的代码,以供参考。
<div id="site-generator">
<?php do_action( \'twentyeleven_credits\' ); ?>
<a href="<?php echo esc_url( __( \'http://wordpress.org/\', \'twentyeleven\' ) ); ?>"
title="<?php esc_attr_e( \'Semantic Personal Publishing Platform\', \'twentyeleven\' ); ?>"
rel="generator">
<?php printf( __( \'Proudly powered by %s\', \'twentyeleven\' ), \'WordPress\' ); ?></a>
</div>