forked from lino/radar-wp
Tidied up code comments pre-release.
This commit is contained in:
parent
eab5592dd5
commit
65db102f6f
4 changed files with 224 additions and 81 deletions
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Manage the Squat Radar plugin.
|
||||
*
|
||||
* @package Squat_Radar
|
||||
* @package squat-radar
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
// Exit if accessed directly.
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
|
@ -38,14 +39,15 @@ class Squat_Radar_Instance {
|
|||
}
|
||||
|
||||
/**
|
||||
* Load translation files
|
||||
*
|
||||
* @since 0.2.4
|
||||
* Load translation files.
|
||||
*/
|
||||
function i18n() {
|
||||
load_plugin_textdomain( 'squat-radar', false, '/languages' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Shortcode callback to print the dynamic sidebar.
|
||||
*/
|
||||
function print_sidebar() {
|
||||
ob_start();
|
||||
|
||||
|
@ -56,8 +58,9 @@ class Squat_Radar_Instance {
|
|||
return ob_get_clean();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Action callback to add the dynamic sidebar.
|
||||
*/
|
||||
function add_sidebar() {
|
||||
|
||||
register_sidebar([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue