acf_field_dummy

The Advanced Custom Fields acf field dummy class.

Defined (1)

The class is defined in the following location(s).

/core/fields/dummy.php  
  1. class acf_field_dummy extends acf_field 
  2.  
  3. /** 
  4. * __construct 
  5. * Set name / label needed for actions / filters 
  6. * @since 3.6 
  7. * @date 23/01/13 
  8. */ 
  9.  
  10. function __construct() 
  11. // vars 
  12. $this->name = 'dummy'; 
  13. $this->label = __('Dummy'); 
  14.  
  15.  
  16. // do not delete! 
  17. parent::__construct(); 
  18.  
  19.  
  20. /** 
  21. * load_value() 
  22. * This filter is appied to the $value after it is loaded from the db 
  23. * @type filter 
  24. * @since 3.6 
  25. * @date 23/01/13 
  26. * @param $value - the value found in the database 
  27. * @param $post_id - the $post_id from which the value was loaded from 
  28. * @param $field - the field array holding all the field options 
  29. * @return $value - the value to be saved in te database 
  30. */ 
  31.  
  32. function load_value( $value, $post_id, $field ) 
  33. return $value; 
  34.  
  35.  
  36. /** 
  37. * format_value() 
  38. * This filter is appied to the $value after it is loaded from the db and before it is passed to the create_field action 
  39. * @type filter 
  40. * @since 3.6 
  41. * @date 23/01/13 
  42. * @param $value - the value which was loaded from the database 
  43. * @param $post_id - the $post_id from which the value was loaded 
  44. * @param $field - the field array holding all the field options 
  45. * @return $value - the modified value 
  46. */ 
  47.  
  48. function format_value( $value, $post_id, $field ) 
  49. return $value; 
  50.  
  51.  
  52. /** 
  53. * format_value_for_api() 
  54. * This filter is appied to the $value after it is loaded from the db and before it is passed back to the api functions such as the_field 
  55. * @type filter 
  56. * @since 3.6 
  57. * @date 23/01/13 
  58. * @param $value - the value which was loaded from the database 
  59. * @param $post_id - the $post_id from which the value was loaded 
  60. * @param $field - the field array holding all the field options 
  61. * @return $value - the modified value 
  62. */ 
  63.  
  64. function format_value_for_api( $value, $post_id, $field ) 
  65. return $value; 
  66.  
  67.  
  68. /** 
  69. * update_value() 
  70. * This filter is appied to the $value before it is updated in the db 
  71. * @type filter 
  72. * @since 3.6 
  73. * @date 23/01/13 
  74. * @param $value - the value which will be saved in the database 
  75. * @param $field - the field array holding all the field options 
  76. * @param $post_id - the $post_id of which the value will be saved 
  77. * @return $value - the modified value 
  78. */ 
  79.  
  80. function update_value( $value, $post_id, $field ) 
  81. return $value; 
  82.  
  83.  
  84. /** 
  85. * load_field() 
  86. * This filter is appied to the $field after it is loaded from the database 
  87. * @type filter 
  88. * @since 3.6 
  89. * @date 23/01/13 
  90. * @param $field - the field array holding all the field options 
  91. * @return $field - the field array holding all the field options 
  92. */ 
  93.  
  94. function load_field( $field ) 
  95. return $field; 
  96.  
  97.  
  98. /** 
  99. * update_field() 
  100. * This filter is appied to the $field before it is saved to the database 
  101. * @type filter 
  102. * @since 3.6 
  103. * @date 23/01/13 
  104. * @param $field - the field array holding all the field options 
  105. * @param $post_id - the field group ID (post_type = acf) 
  106. * @return $field - the modified field 
  107. */ 
  108.  
  109. function update_field( $field, $post_id ) 
  110. return $field; 
  111.  
  112.  
  113. /** 
  114. * create_field() 
  115. * Create the HTML interface for your field 
  116. * @type action 
  117. * @since 3.6 
  118. * @date 23/01/13 
  119. * @param $field - an array holding all the field's data 
  120. */ 
  121.  
  122. function create_field( $field ) 
  123.  
  124.  
  125.  
  126. /** 
  127. * create_options() 
  128. * Create extra options for your field. This is rendered when editing a field. 
  129. * The value of $field['name'] can be used (like bellow) to save extra data to the $field 
  130. * @type action 
  131. * @since 3.6 
  132. * @date 23/01/13 
  133. * @param $field - an array holding all the field's data 
  134. */ 
  135.  
  136. function create_options( $field ) 
  137.  
  138.  
  139.  
  140. /** 
  141. * input_admin_enqueue_scripts() 
  142. * This action is called in the admin_enqueue_scripts action on the edit screen where your field is created. 
  143. * Use this action to add css + javascript to assist your create_field() action. 
  144. * $info http://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts 
  145. * @type action 
  146. * @since 3.6 
  147. * @date 23/01/13 
  148. */ 
  149.  
  150. function input_admin_enqueue_scripts() 
  151.  
  152.  
  153.  
  154. /** 
  155. * input_admin_head() 
  156. * This action is called in the admin_head action on the edit screen where your field is created. 
  157. * Use this action to add css and javascript to assist your create_field() action. 
  158. * @info http://codex.wordpress.org/Plugin_API/Action_Reference/admin_head 
  159. * @type action 
  160. * @since 3.6 
  161. * @date 23/01/13 
  162. */ 
  163.  
  164. function input_admin_head() 
  165.  
  166.  
  167.  
  168. /** 
  169. * field_group_admin_enqueue_scripts() 
  170. * This action is called in the admin_enqueue_scripts action on the edit screen where your field is edited. 
  171. * Use this action to add css + javascript to assist your create_field_options() action. 
  172. * $info http://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts 
  173. * @type action 
  174. * @since 3.6 
  175. * @date 23/01/13 
  176. */ 
  177.  
  178. function field_group_admin_enqueue_scripts() 
  179.  
  180.  
  181.  
  182. /** 
  183. * field_group_admin_head() 
  184. * This action is called in the admin_head action on the edit screen where your field is edited. 
  185. * Use this action to add css and javascript to assist your create_field_options() action. 
  186. * @info http://codex.wordpress.org/Plugin_API/Action_Reference/admin_head 
  187. * @type action 
  188. * @since 3.6 
  189. * @date 23/01/13 
  190. */ 
  191.  
  192. function field_group_admin_head() 
  193.