When I comment out the line:
@header('Content-type: application/json; charset=UTF-8');
it works for me
p.s.
- there is also a
closing phpopening tag in it without the word php - there is a closing php tag at the bottom which can be gone
- there is a notice on an undefined index.
- better would be to use $charset = get_option(‘blog_charset’);
I have no idea if this: http://wordpress.org/support/topic/plugin-json-api-content-length-header has something do with it, or this: http://core.trac.wordpress.org/ticket/11537 or this: http://wordpress.org/support/topic/wordpress-gone-wild?replies=3 , did not dive in it.
Related Posts:
- How do I add CSS options to my plugin without using inline styles?
- How to override existing plugin action with new action
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- How to store username and password to API in wordpress option DB?
- Which hook should be used to add an action containing a redirect?
- How do I create links at the top of WP_List_table?
- Is it worth checking if class_exists when developing a plugin and how to do it?
- Why Does get_posts() Return an Empty Set?
- Get list of available wordpress actions
- Where to enqueue stylesheets for plugin?
- How do I resolve Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1145
- How can the tinyMCE dom be manipulated (offical API does not seem to work)?
- stray elements
- Deletion of shared options using uninstall.php
- Pass javascript result to shortcode executer function
- URLs of plugin resources?
- anything like add_meta_box for categories?
- Plugin Settings not Saving on Ajax re-ordered table
- Can we create a category list page in WordPress?
- How to include class from addon after to be sure one class exists in the main plugin?
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Undefined function wp_set_password
- WordPress password reset – why post rp_key?
- How to modify the new WordPress 4.5 link inline toolbar
- Is it possible to check is loaded language files correctly with WordPress plugin?
- Plugin Uninstall and Deactivate via Options Menu
- Do I have to override the wp_mail() pluggable function with writing a plugin?
- If a function requires add_action(‘init’) how can I run it only once on plugin activation?
- Ordering posts by metadata
- Finding the paragraphs in content
- When I deactive WooCommerce Plugin, I want to take a action in My plugin
- Create a custom display order in the main menu
- Override the default Add/Edit site forms of the Network Panel in custom plugin
- add more custom post types and custom role to the code
- Executing a function upon webhook calling wordpress
- How to display additional info in the plugins admin table?
- A better way to include localized labels in WordPress plugins
- How a deprecated function can crash WordPress site while upgrading
- plugin settings – uploading multiple files with a single button
- Limit role to one plugin [duplicate]
- How to fix Uninitialized string offset: error on a checkbox in WP Settings API
- Getting term_id for newly created or edited term
- Saving value of a selection option in comment form as comment meta
- How to insert text at the current cursor position in Gutenberg?
- Remove unwanted elements for a wp_nav_menu
- What is the proper method of using global $post?
- how to add stylesheet to particular plugin only?
- Difference between wp_salt schemes
- How to get post content by get_posts function?
- Getting following web services error after activating the Rewards Plugin
- WordPress daily cron is executing more frequently than once a day
- How can I replace the search results displayed by WordPress?
- How to modify files inside wp-includes directory in wordpress
- What is the best way to store a few fields?
- add_submenu_page hooked function must explicitly check user capabilities – why?
- How to apply style_loader_src filter with exclusion of a specific file?
- I18n not working in plugin
- Mixing l18n string from my plugin with WordPress’ translations
- Minimum Widget Width for Plugin Development
- Non editable custom taxonomy
- Should I use wp-content/cache or [PLUGIN_DIR]/cache?
- How to resize WordPress images on upload to specific height and width without cropping it
- Get section of input passed to the sanitize_callback
- Checking for existing title in custom db query not working
- Restrict certain actions to plugin-specific admin menu pages only
- insufficient permissions; coding an action for plugin governed by custom capability
- Adding tables to dashboard pages programmatically?
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- how to add custom fields into new & update post page?
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- List all user post API endpoint
- Condition to check previous next article post title
- How to know if current plugin is going to be used while rendering the page?
- Dynamically modify content added to table via javascript
- functions won’t fire after I converted my code from procedural code to OOP
- How to prevent wp_insert_post from creating a new post every second?
- CPT UI and custom database table
- Multisite and the JSON REST API: How to?
- Updating a WP Plugin SVN not showing on WordPress Website or Zip
- Download stopped working in 4.7.4
- $wpdb Mysql trigger problem
- Looping single post in a theme
- WordPress postboxes On Tabbed Views and Hiding Registered Pages
- How can I send an id over the url?
- grouping my widgets wordpress
- Creating custom Insert Media page
- Get fields of a widget
- Yet another wp_insert_post infinite loop. What is wrong?
- Initialize class inside plugin
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- “Print to printer” functionality in a plugin
- Remove text from confirmation message
- Which subset of html does WordPress support?
- Can I use an array to create multiple tables?
- How to set init for maximum script execution, memory limit and max files upload in wordpress
- Trying to build a plugin – Cannot modify header information
- Fetch Custom Woocomerce filed data and check the data avialble in Wp-user table as nicname or username using function.php
- How to get locale within WP REST Request?
- How to add extra EXIF data when images are uploaded?
- How to boost WP custom post REST API GET queries by custom taxonomies