Tag Info

Hot answers tagged

3

it seems the latter only accepts x-www-form-urlencoded That's not completely true. WordPress admin-ajax.php takes the action from $_REQUEST['action'] and $_REQUEST is equal to: array_merge($_POST, $_GET); But what many people don't realize is that $_GET in PHP is not the data was sent to page using HTTP GET method, in fact, you can use whatever ...


1

I think what you need is the set of filters and actions to add custom columns to post edit screens: manage_edit-post_type_columns: used to add columns manage_posts_custom_column: used to print the content of each row of the column manage_edit-post_type_sortable_columns: used to register sortable columns. Undocumented. request: you may need to use this ...


1

Unfortunately WordPress does not support third-level admin menu, so there's no easy way to achieve the result you want. You can only remove these 4 submenu items, add a submenu item instead which will be a link to a custom admin page and display these 4 links within that page (content). Read about following hooks: remove_submenu_page() add_submenu_page() ...


1

The $function argument of add_menu_page should be a function that produces your page output, or if omitted, then the $menu_slug argument can be a file that when included will output the menu page. But your output right now has nothing to do with the add_menu_page call, the problem is that you're requiring aio_dashboard.php, which has a function hooked to ...


1

EDIT From comments, it seems I've missed the actual purpose here Here is an update: There is no way to tell that or to know that. Every theme is unique and how a specific user uses a post format is also unique. If you read my answer, status is used to display statusses like twitter. So in content-status.php you would have just maybe the_excerpt(). ...


1

The problem in this case is the name of the post type, action. WordPress core uses the query var action for its own purposes, so this has created a conflict somewhere within the code. The solution is to rename the post type to something unique to remove the conflict.



Only top voted, non community-wiki answers of a minimum length are eligible