Метод | Описание | |
---|---|---|
__construct ( |
Construct | |
add_hooks ( ) | Add hooks | |
add_menu_items ( ) | Add menu items | |
add_meta_box ( WP_Pos\WP_Post $post ) | Add metabox with Article Settings to wpkb-article edit screen. | |
register_settings ( ) | Register settings | |
sanitize_settings ( $settings ) : array | ||
save_kb_article ( integer $post_id, WP_Pos\WP_Post $post ) : boolean | Runs when saving a KB article | |
show_meta_box ( WP_Pos\WP_Post $post ) | ||
show_settings_page ( ) | Render the settings page |
public add_meta_box ( WP_Pos\WP_Post $post ) | ||
$post | WP_Pos\WP_Post |
public sanitize_settings ( $settings ) : array | ||
$settings | ||
Результат | array |
public save_kb_article ( integer $post_id, WP_Pos\WP_Post $post ) : boolean | ||
$post_id | integer | |
$post | WP_Pos\WP_Post | |
Результат | boolean |