/** * PHP require the custom.php file, if it exists. * * @uses prose_get_custom_php_path() * * @since 1.5.0 * */ function prose_do_custom_php() { if (!is_admin() && file_exists(prose_get_custom_php_path())) { require_once prose_get_custom_php_path(); } }
/** * PHP to edit. * * @author StudioPress * @since 1.5.0 */ function custom_php() { $custom_php = file_get_contents(prose_get_custom_php_path()); printf('<textarea name="%s" id="%s" cols="80" rows="22">%s</textarea>', $this->get_field_name('php'), $this->get_field_id('php'), esc_textarea($custom_php)); }