1
wordpress * wp-admin/edit.php?post_type = post *、私は他のアプリケーションのために各ポストをカスタムxmlにエクスポートする新しい一括アクションを追加しようとしました。私は次のコードを使用して何も起こらない。誰も私がこの問題を解決するのを助けることができます。これらは私が代わりにこれを試してみてくださいfunction.phpbulk_actions-postは、ワードプレスのポスト画面では機能しません。
function my_custom_bulk_actions($actions){
$actions['custom_xml_export'] = "Export to XML";
return $actions;
}
function register_custom_bulk_action(){
add_filter('bulk_actions-post','my_custom_bulk_actions');
}
add_action('admin_init','register_custom_bulk_action');
右のおかげだということ! – RafaSashi