public function addListTablePage()
    {
        add_submenu_page(
            'options-general.php',
            'Broken links',
            'Broken links',
            'edit_posts',
            'broken-links-detector',
            function () {
                \BrokenLinkDetector\App::checkInstall();

                $listTable = new \BrokenLinkDetector\ListTable();

                $offset = get_option('gmt_offset');

                if ($offset > -1) {
                    $offset = '+' . $offset;
                } else {
                    $offset = '-' . (1 * abs($offset));
                }

                $nextRun = date('Y-m-d H:i', strtotime($offset . ' hours', wp_next_scheduled('broken-links-detector-external')));

                include BROKENLINKDETECTOR_TEMPLATE_PATH . 'list-table.php';
            }
        );
    }
public function addListTablePage()
    {
        add_submenu_page(
            'options-general.php',
            'Broken links',
            'Broken links',
            'edit_posts',
            'broken-links-detector',
            function () {
                \BrokenLinkDetector\App::checkInstall();

                $listTable = new \BrokenLinkDetector\ListTable();

                $offset = get_option('gmt_offset');

                if ($offset > -1) {
                    $offset = '+' . $offset;
                } else {
                    $offset = '-' . (1 * abs($offset));
                }

                $nextRun = date('Y-m-d H:i', strtotime($offset . ' hours', wp_next_scheduled('broken-links-detector-external')));

                include BROKENLINKDETECTOR_TEMPLATE_PATH . 'list-table.php';
            }
        );
    }
public function addListTablePage ( ) { add_submenu_page ( 'options-general.php' , 'Broken links' , 'Broken links' , 'edit_posts' , 'broken-links-detector' , function ( ) { \ BrokenLinkDetector \ App :: checkInstall ( ) ; $ listTable = new \ BrokenLinkDetector \ ListTable ( ) ; $ offset = get_option ( 'gmt_offset' ) ; if ( $ offset > - 1 ) { $ offset = '+' . $ offset ; } else { $ offset = '-' . ( 1 * abs ( $ offset ) ) ; } $ nextRun = date ( 'Y-m-d H:i' , strtotime ( $ offset . ' hours' , wp_next_scheduled ( 'broken-links-detector-external' ) ) ) ; include BROKENLINKDETECTOR_TEMPLATE_PATH . 'list-table.php' ; } ) ; }
Adds the list table page of broken links
Adds the list table page of broken links