Plugin Directory

Changeset 1842211


Ignore:
Timestamp:
03/18/2018 03:14:01 PM (8 years ago)
Author:
oxsn
Message:

General Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • helpful-features/trunk/helpful-features.php

    r1842193 r1842211  
    526526                        $hefe_tools_page .= '<small>SHORTCODE</small><h2>ACF FORM</h2>';
    527527                        $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>';
    529529                        $hefe_tools_page .= '<hr />';
    530530                        $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>';
     
    29002900            }
    29012901
    2902             $current_author = '';
     2902            $current_author = '999999999999999999';
    29032903            if(in_array('current_author', $user_roles)){
    29042904                $current_author = $current_user->ID;
Note: See TracChangeset for help on using the changeset viewer.