Changeset 2201906
- Timestamp:
- 11/27/2019 10:22:10 AM (6 years ago)
- Location:
- admin-columns-for-acf-fields/tags
- Files:
-
- 2 edited
- 2 copied
-
0.1 (copied) (copied from admin-columns-for-acf-fields/trunk)
-
0.1.1 (copied) (copied from admin-columns-for-acf-fields/trunk)
-
0.1.1/acf_admin_columns.php (modified) (2 diffs)
-
0.1.1/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin-columns-for-acf-fields/tags/0.1.1/acf_admin_columns.php
r2170806 r2201906 4 4 * Plugin URI: https://wordpress.org/plugins/acf-admin-columns/ 5 5 * Description: Add columns for your ACF fields to post and taxonomy index pages in the WP backend. 6 * Version: 0.1 6 * Version: 0.1.1 7 7 * Author: Florian Eickhorst 8 8 * Author URI: http://www.fleimedia.com/ … … 503 503 } 504 504 505 if (is_admin() ) {505 if (is_admin() && !wp_doing_ajax()) { 506 506 $flei_acf_admin_columns = FleiACFAdminColumns::get_instance(); 507 507 } -
admin-columns-for-acf-fields/tags/0.1.1/readme.txt
r2170806 r2201906 1 # Admin Columns for ACF Fields # 1 === Admin Columns for ACF Fields === 2 2 3 3 Contributors: flei 4 4 Tags: advanced custom fields, acf, admin columns 5 5 Requires at least: 4.6 6 Tested up to: 5. 1.16 Tested up to: 5.3 7 7 Stable tag: 4.3 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 Date: 01.10.201912 Version: 0.1 11 Date: 27.11.2019 12 Version: 0.1.1 13 13 14 14 15 15 Allows you to enable columns for your ACF fields in post and taxonomy overviews (e.g. "All Posts") in the Wordpress admin backend. This plugin requires a recent version of plugin "Advanced Custom Fields" (ACF). 16 16 17 ## Description ## 17 == Description == 18 18 19 19 Use this plugin to show ACF fields in the "All Posts" table view in the Wordpress admin backend. … … 21 21 Simply enable the new option "Admin Column" in your ACF field settings for any regular field (see exceptions below). Now there will be an extra column for your field shown in any overview of posts, pages, taxonomies or your custom post types or taxonomies (e.g. "All Pages"). 22 22 23 You can use filters (see below) to control the plugin 's behaviour even more precisely.23 You can use filters (see below) to control the plugins behaviour even more precisely. 24 24 25 25 Works on any regular ACF field (see exceptions below). … … 27 27 Compatible with Advanced Custom Fields 5.x 28 28 29 Github: https:// www.github.com/fleiflei/29 Github: https://github.com/fleiflei/acf-admin-columns 30 30 31 ## Usage: ## 31 == Screenshots == 32 33 1. Example of various admin columns for Posts 34 35 2. New settings within the ACF field settings UI 36 37 == Usage: == 32 38 33 39 1. Install ACF and this plugin (see below) … … 38 44 6. Save the field group and go to the overview page of the post type or taxonomy (e.g. "Posts > All Posts", or "Pages > All Pages") that you noted above and notice the newly added column for your field. 39 45 40 ## Advanced Usage ## 46 == Advanced Usage == 41 47 42 ### Excluded ACF Fields ### 48 = Excluded ACF Fields = 43 49 44 50 Due to their nature the option "Admin Column" is not shown in ACF for these fields: … … 53 59 - Tab 54 60 55 ### Change how the returned column value is displayed ### 56 Use filter "acf/admin_columns/$field_name" to alter the value that is returned 61 == Filters == 57 62 58 ## Filters ## 59 ### acf/admin_columns/admin_columns ### 63 = "acf/admin_columns/admin_columns" = 60 64 Allows you to change which columns are displayed on the current admin screen. 61 65 62 #### Parameters #### 63 $fields - Array of all ACF fields to be shown in current screen. 66 ** Parameters ** 67 $fields - Array of all ACF fields to be shown in current screen. 64 68 65 ### acf/admin_columns/sortable_columns ### 69 ** Example: ** 70 71 function my_admin_columns($fields) { 72 $fields['my_field'] = 'my_field'; 73 } 74 add_filter('acf/admin_columns/admin_columns','my_admin_columns'); 75 76 = "acf/admin_columns/sortable_columns" = 66 77 Change which columns should be sortable. By default every column is sortable. 67 78 68 #### Parameters #### 79 ** Parameters ** 69 80 $columns - Array of all ACF fields to be shown in current screen. 70 81 71 ### acf/admin_columns/column/$field ### 82 = "acf/admin_columns/column/$field" = 72 83 Allows you to modify the output of a certain $field in every row of a posts table. 73 84 74 #### Parameters #### 85 ** Parameters ** 75 86 $field_value - The field value 76 87 77 78 ## Installation ## 88 == Installation == 79 89 80 90 This section describes how to install the plugin and get it working. … … 87 97 88 98 None yet, feel free to ask. 99 100 == Changelog == 101 102 = 0.1.1 = 103 * Release date: 27.11.2019 * 104 105 * Fix: disable plugin for AJAX requests (see https://github.com/fleiflei/acf-admin-columns/issues/2) 106 * Documentation: screenshot added, formatting and content updates
Note: See TracChangeset
for help on using the changeset viewer.