fix: add missing methods to includes/Tools/SiteTools.php
This commit is contained in:
@@ -98,4 +98,12 @@ class SiteTools {
|
||||
}
|
||||
return ['results' => $results, 'total' => $query->found_posts];
|
||||
}
|
||||
|
||||
public static function getPermalinkStructure(array $args): array {
|
||||
return [
|
||||
'permalink_structure' => get_option('permalink_structure'),
|
||||
'common_bases' => ['plain'=>'','day_name'=>'/%year%/%monthnum%/%day%/%postname%/','month_name'=>'/%year%/%monthnum%/%postname%/','numeric'=>'/archives/%post_id%','post_name'=>'/%postname%/']
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user