Created
April 16, 2017 23:23
-
-
Save JeffMatson/3f0386f9c8f3244f7f58a28745bf7d38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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