WordPress Admin - markhowellsmead/helpers GitHub Wiki
Functions and reference for the WordPress Admin area.
Currently relevant after updating to WordPress 6.3. Flushes all Core CSS files which are cached as transients.
Don't forget to add the --network
flag in a multisite installation.
wp transient delete wp_core_block_css_files
add_action('tool_box', [$this, 'renderToolBox']);
…
public function renderToolBox()
{
?>
<div class="card">
<h2 class="title"><?php esc_html_e('IDX Output for Property Owner', 'shp-propertyowner-idx'); ?></h2>
<p>
<?php
esc_html_e(
'The plugin is active and allows you to export data in IDX format.',
'shp-propertyowner-idx'
)
?>
</p>
<p>
<a href="<?php echo admin_url('tools.php?page=shp-propertyowner-idx'); ?>">
<?php esc_html_e('View options', 'shp-propertyowner-idx'); ?>
</a>
</p>
</div>
<?php
}