function accost() { if (!current_user_can(SJF_GF_Meta::get_capability())) { wp_die(esc_html__('Not Permitted', 'sjf-gf')); } }
function get_import_all_link() { $import_all_text = esc_html__('Import from all sources', 'sjf-gf'); $import_all_href = SJF_GF_Meta::get_admin_url(array('page' => __CLASS__, 'source_ids' => 'all')); return "<a href='{$import_all_href}'>{$import_all_text}</a>"; }
function get_import_href() { return SJF_GF_Meta::get_admin_url(array('page' => 'SJF_GF_Imports', 'source_id' => $this->get_post_id())); }