Put review link via action
This commit is contained in:
@@ -21,6 +21,9 @@ class SP_Admin {
|
|||||||
add_action( 'init', array( $this, 'includes' ) );
|
add_action( 'init', array( $this, 'includes' ) );
|
||||||
add_action( 'current_screen', array( $this, 'conditonal_includes' ) );
|
add_action( 'current_screen', array( $this, 'conditonal_includes' ) );
|
||||||
add_action( 'admin_init', array( $this, 'prevent_admin_access' ) );
|
add_action( 'admin_init', array( $this, 'prevent_admin_access' ) );
|
||||||
|
add_action( 'sportspress_settings_page', 'sp_review_link' );
|
||||||
|
add_action( 'sportspress_config_page', 'sp_review_link' );
|
||||||
|
add_action( 'sportspress_overview_page', 'sp_review_link' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -347,10 +347,5 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php do_action( 'sportspress_config_page', 'sportspress' ); ?>
|
<?php do_action( 'sportspress_config_page' ); ?>
|
||||||
<p>
|
|
||||||
<a href="http://wordpress.org/support/view/plugin-reviews/sportspress?rate=5#postform">
|
|
||||||
<?php _e( 'Love SportsPress? Help spread the word by rating us 5★ on WordPress.org', 'sportspress' ); ?>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
@@ -328,9 +328,5 @@
|
|||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<?php do_action( 'sportspress_overview_page' ); ?>
|
||||||
<a href="http://wordpress.org/support/view/plugin-reviews/sportspress?rate=5#postform">
|
|
||||||
<?php _e( 'Love SportsPress? Help spread the word by rating us 5★ on WordPress.org', 'sportspress' ); ?>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
@@ -17,9 +17,5 @@
|
|||||||
<?php wp_nonce_field( 'sportspress-settings' ); ?>
|
<?php wp_nonce_field( 'sportspress-settings' ); ?>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<p>
|
<?php do_action( 'sportspress_settings_page' ); ?>
|
||||||
<a href="http://wordpress.org/support/view/plugin-reviews/sportspress?rate=5#postform">
|
|
||||||
<?php _e( 'Love SportsPress? Help spread the word by rating us 5★ on WordPress.org', 'sportspress' ); ?>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user