Skip to toolbar

WordPress.org

New to Translating WordPress? Read through our Translator Handbook to get started. Hide

Translation of Development Readme (trunk): English (New Zealand)

Filter ↓ Sort ↓ All (65) Translated (0) Untranslated (65) Waiting (0) Fuzzy (0) Warnings (0)
1 2 3 5
Prio Original string Translation
Create a WP Post from a Form Submission. You have to log in to add a translation. Details

Original untranslated

Create a WP Post from a Form Submission.
Comment

Short description.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
high
Form to Post You have to log in to add a translation. Details

Original untranslated

Form to Post
Comment

Name.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
high
Example: you don't have a "post-content" or "post-title" field in your form, but you want to set those values as a combination of values from other form fields. In this simply example, our form has field "your-name" and "your-email". The hook is used to create the "post-content" or "post-title" fields to be text with the value of fields "your-name" and "your-email" embedded in them. You have to log in to add a translation. Details

Original untranslated

Example: you don't have a "post-content" or "post-title" field in your form, but you want to set those values as a combination of values from other form fields. In this simply example, our form has field "your-name" and "your-email". The hook is used to create the "post-content" or "post-title" fields to be text with the value of fields "your-name" and "your-email" embedded in them.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
An advanced application is to manipulate the raw form data just before the plugin uses it. The hook form_to_post_form_data allows this. Functions subscribing to this hook take one argument which is the form data. The data structure is the same as that in <a href="http://cfdbplugin.com/?page_id=646">CFDB Plugin</a> (another one of my plugins). You have to log in to add a translation. Details

Original untranslated

An advanced application is to manipulate the raw form data just before the plugin uses it. The hook form_to_post_form_data allows this. Functions subscribing to this hook take one argument which is the form data. The data structure is the same as that in <a href="http://cfdbplugin.com/?page_id=646">CFDB Plugin</a> (another one of my plugins).
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
<strong>Dynamically Manipulating the Form Data After Submission</strong> You have to log in to add a translation. Details

Original untranslated

<strong>Dynamically Manipulating the Form Data After Submission</strong>
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
Notice: you do <em>not</em> prefix the custom fields values with "meta_" in this case. Only do that when you are setting them in the form itself. You have to log in to add a translation. Details

Original untranslated

Notice: you do <em>not</em> prefix the custom fields values with "meta_" in this case. Only do that when you are setting them in the form itself.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
You will need a different hook to set custom fields. Here is an example. You have to log in to add a translation. Details

Original untranslated

You will need a different hook to set custom fields. Here is an example.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
<strong>Setting Custom Fields Server Side Using a Filter:</strong> You have to log in to add a translation. Details

Original untranslated

<strong>Setting Custom Fields Server Side Using a Filter:</strong>
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
Example Situation 1 Solution: In your theme or using <a href="https://wordpress.org/plugins/add-actions-and-filters/">Add Shortcodes Actions And Filters</a> plugin, add a filter function and register it to the form_to_post_before_create_post hook. You have to log in to add a translation. Details

Original untranslated

Example Situation 1 Solution: In your theme or using <a href="https://wordpress.org/plugins/add-actions-and-filters/">Add Shortcodes Actions And Filters</a> plugin, add a filter function and register it to the form_to_post_before_create_post hook.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
To address these situations, Form To Post provides a WordPress filter where you can add PHP code. You have to log in to add a translation. Details

Original untranslated

To address these situations, Form To Post provides a WordPress filter where you can add PHP code.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
Example Situation 2: you want to apply some logic about whether a post is automatically published (perhaps based on the user's login). You have to log in to add a translation. Details

Original untranslated

Example Situation 2: you want to apply some logic about whether a post is automatically published (perhaps based on the user's login).
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
Example Situation 1: you want to set the post_status set to 'pending' so that you can review posts before they are published. However, you don't want to put that as a field in your form because you are concerned about a hacker changing its value 'published'. You want to control that on the server side, not in the form in the user's browser. You have to log in to add a translation. Details

Original untranslated

Example Situation 1: you want to set the post_status set to 'pending' so that you can review posts before they are published. However, you don't want to put that as a field in your form because you are concerned about a hacker changing its value 'published'. You want to control that on the server side, not in the form in the user's browser.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
<strong>Setting Values on the Server Side Using a Filter:</strong> You have to log in to add a translation. Details

Original untranslated

<strong>Setting Values on the Server Side Using a Filter:</strong>
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
You can optionally set "post meta" (custom field) key-value pairs on your post. To do this, add fields to your form whose name start with "meta_". For example, if you want to set the post meta key "my_key" then create a form field named "meta_my_key". The "meta_" prefix is used to identify the field as a post meta field and the "meta_" gets stripped off. Then a call to <a href="http://codex.wordpress.org/Function_Reference/update_post_meta">update_post_meta</a> is made give that key and the field's value. You have to log in to add a translation. Details

Original untranslated

You can optionally set "post meta" (custom field) key-value pairs on your post. To do this, add fields to your form whose name start with "meta_". For example, if you want to set the post meta key "my_key" then create a form field named "meta_my_key". The "meta_" prefix is used to identify the field as a post meta field and the "meta_" gets stripped off. Then a call to <a href="http://codex.wordpress.org/Function_Reference/update_post_meta">update_post_meta</a> is made give that key and the field's value.
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
<strong>Setting Post Meta (Custom Fields):</strong> You have to log in to add a translation. Details

Original untranslated

<strong>Setting Post Meta (Custom Fields):</strong>
Comment

Found in description paragraph.

You have to log in to edit this translation.

Meta

Status:
untranslated
Priority of the original:
normal
1 2 3 5
Legend:
Current
Waiting
Rejected
Fuzzy
Old
With warnings

Export as