Skip to content

Instantly share code, notes, and snippets.

@sachyya
Created February 9, 2017 10:36
Show Gist options
  • Save sachyya/2d96bb9619bea72b72053f0106fbe200 to your computer and use it in GitHub Desktop.
Save sachyya/2d96bb9619bea72b72053f0106fbe200 to your computer and use it in GitHub Desktop.
This code is to show user to go to specific section to configure that section in a theme.
<?php
if ( current_user_can( 'customize' ) ) { ?>
<div class="message">
<p><?php _e( 'There are no pages available to display.', 'textdomain' ); ?></p>
<p><?php printf(
__( 'These pages can be set in the <a href="%s">customizer</a>.', 'textdomain' ),
admin_url( 'customize.php?autofocus[control]=showcase' )
); ?>
</p>
</div>
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment