Skip to content

Instantly share code, notes, and snippets.

@JeffMatson
Created April 16, 2017 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffMatson/3f0386f9c8f3244f7f58a28745bf7d38 to your computer and use it in GitHub Desktop.
Save JeffMatson/3f0386f9c8f3244f7f58a28745bf7d38 to your computer and use it in GitHub Desktop.
public function feed_settings_fields() {
return array(
array(
'title' => 'PDF Settings',
'fields' => array(
array(
'label' => 'Enable PDF Download',
'type' => 'checkbox',
'name' => 'enabled',
'tooltip' => 'Check this if you want a download link to the PDF to be displayed.',
'choices' => array(
array(
'label' => 'Enabled',
'name' => 'enabled',
),
),
),
array(
'label' => 'Content',
'type' => 'pdf_content',
'name' => 'pdf_content',
),
),
),
);
}
public function settings_pdf_content() {
ob_start();
wp_editor( '', 'pdf_content_editor' );
$pdf_editor = ob_get_clean();
return $pdf_editor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment