Changeset 1842211
- Timestamp:
- 03/18/2018 03:14:01 PM (8 years ago)
- File:
-
- 1 edited
-
helpful-features/trunk/helpful-features.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
helpful-features/trunk/helpful-features.php
r1842193 r1842211 526 526 $hefe_tools_page .= '<small>SHORTCODE</small><h2>ACF FORM</h2>'; 527 527 $hefe_tools_page .= '<p>This is a shortcode that will display an acf form. For this shortcode to work, you must place "acf_form_head();" before "get_header();"</p>'; 528 $hefe_tools_page .= '<p><strong>Usage</strong><br>New Content: ['.hefe_shortcode_name.'_acf_form user_roles="" post_id="new_post" post_title="true" post_content="true" return="%post_url%" field_groups="" post_type="post" post_status="publish" supdated_message="" submit_value="Submit"]<br>Edit Content: ['.hefe_shortcode_name.'_acf_form user_roles="administrator, current_author" post_id="get_id" post_title="true" post_content="true" return="%post_url%" field_groups="" post_type="" post_status="" updated_message="" submit_value="Update"]</p>';528 $hefe_tools_page .= '<p><strong>Usage</strong><br>New Content: ['.hefe_shortcode_name.'_acf_form user_roles="" post_id="new_post" post_title="true" post_content="true" return="%post_url%" field_groups="" post_type="post" post_status="publish" supdated_message="" submit_value="Submit"]<br>Edit Content: ['.hefe_shortcode_name.'_acf_form user_roles="administrator,current_author" post_id="get_id" post_title="true" post_content="true" return="%post_url%" field_groups="" post_type="" post_status="" updated_message="" submit_value="Update"]</p>'; 529 529 $hefe_tools_page .= '<hr />'; 530 530 $hefe_tools_page .= '<p><strong>Atts:</strong><br>role_visiblity, id, post_id, post_type, post_status, field_groups, fields, post_title, post_content, form, form_attributes, return, html_before_fields, html_after_fields, submit_value, updated_message, label_placement, instruction_placement, field_el, uploader, honeypot, html_updated_message, html_submit_button, html_submit_spinner, kses</p>'; … … 2900 2900 } 2901 2901 2902 $current_author = ' ';2902 $current_author = '999999999999999999'; 2903 2903 if(in_array('current_author', $user_roles)){ 2904 2904 $current_author = $current_user->ID;
Note: See TracChangeset
for help on using the changeset viewer.