Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
cbb697a
Load default columns call when no columns are found
DGStefan Nov 21, 2025
cf3bfa2
Beter Typescript check
DGStefan Nov 21, 2025
423a8b3
Todo removed
DGStefan Nov 21, 2025
e398876
Merge branch 'release/7.0' into custom-collections
DGStefan Nov 21, 2025
631fe75
Update ListScreenSave.php
DGStefan Nov 21, 2025
f24936c
Merge branch 'release/7.0' into custom-collections
DGStefan Nov 24, 2025
8f63692
Big WIP field configurator
DGStefan Nov 26, 2025
cc6d6de
notices
davidmosterd Nov 27, 2025
64b1156
Merge branch 'release/7.0' into custom-collections
tobiasschutter Nov 27, 2025
1bdd829
Update TableRows.php
tobiasschutter Nov 27, 2025
814c303
Update TableRows.php
tobiasschutter Nov 27, 2025
47b3820
TableRows
tobiasschutter Nov 27, 2025
b5ecdc4
More FieldCOnfigurators
DGStefan Nov 28, 2025
cbe4941
Merge branch 'release/7.0' into custom-collections
DGStefan Nov 28, 2025
055fb9a
Fieldbuildebuilder
DGStefan Nov 28, 2025
2a03019
ValueFormatter poc
tobiasschutter Nov 28, 2025
3c86e5d
todo
davidmosterd Nov 28, 2025
9618bc3
Merge branch 'custom-collections' of https://github.com/codepress/adm…
davidmosterd Nov 28, 2025
7227874
Merge branch 'release/7.0' into custom-collections-value-formatter
tobiasschutter Nov 28, 2025
a022fbc
Update ManageValue.php
tobiasschutter Nov 28, 2025
b627e95
ValueFormatter poc
tobiasschutter Nov 28, 2025
a309663
Merge branch 'release/7.0-value-formatter' into custom-collections-va…
tobiasschutter Nov 28, 2025
9f40015
Merge branch 'custom-collections-value-formatter' into custom-collect…
tobiasschutter Nov 28, 2025
cd23398
Select Factory
DGStefan Dec 1, 2025
233891e
resolve id
davidmosterd Dec 1, 2025
cec3dee
Merge branch 'custom-collections' of https://github.com/codepress/adm…
davidmosterd Dec 1, 2025
e68c9f3
add interface
davidmosterd Dec 1, 2025
3f57144
rename
davidmosterd Dec 1, 2025
d807d50
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 1, 2025
b797324
TODO for FieldBuilder
DGStefan Dec 1, 2025
b6c317f
Merge branch 'custom-collections' of https://github.com/codepress/adm…
DGStefan Dec 1, 2025
d72c257
Update ImageSize.php
DGStefan Dec 1, 2025
c420dff
collection experiment on priorities
davidmosterd Dec 1, 2025
1fbdc48
Merge branch 'custom-collections' of https://github.com/codepress/adm…
davidmosterd Dec 1, 2025
127f724
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 1, 2025
fcb53fc
FieldBuilderFactory
DGStefan Dec 2, 2025
9ea6a0e
Merge branch 'custom-collections' of https://github.com/codepress/adm…
DGStefan Dec 2, 2025
85e8fc6
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 2, 2025
7432290
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 2, 2025
db98c3b
Renamed Configurator
DGStefan Dec 2, 2025
1be76ba
Update CustomFieldFactory.php
DGStefan Dec 2, 2025
60c6e95
named
davidmosterd Dec 2, 2025
2e46b40
FieldTypeDirector
DGStefan Dec 2, 2025
2c23f72
Merge branch 'custom-collections' of https://github.com/codepress/adm…
DGStefan Dec 2, 2025
4c0a2af
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 3, 2025
80e8240
Default Loading
DGStefan Dec 3, 2025
a91ccc9
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 3, 2025
fafdc01
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 3, 2025
941725e
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 3, 2025
c17cd21
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 3, 2025
9bad27a
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 3, 2025
2449f4a
Update ValueCollection.php
tobiasschutter Dec 3, 2025
483c1fe
Update DateSaveFormat.php
DGStefan Dec 8, 2025
f0efe68
Boolean Values
DGStefan Dec 8, 2025
3c62968
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 12, 2025
59ac6f9
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 12, 2025
97f4637
Date formatters
tobiasschutter Dec 16, 2025
ce226f1
scope fix
davidmosterd Dec 16, 2025
80e3b1f
Merge branch 'release/7.0' into custom-collections
tobiasschutter Dec 16, 2025
af2d954
TODO options
davidmosterd Dec 17, 2025
7c171bb
Merge branch 'custom-collections' of https://github.com/codepress/adm…
davidmosterd Dec 17, 2025
2f6f26c
Select Multiple fix
DGStefan Dec 17, 2025
304702c
Merge branch 'custom-collections' of https://github.com/codepress/adm…
DGStefan Dec 17, 2025
044fca7
group
davidmosterd Dec 17, 2025
90eea48
Quickfix Option
DGStefan Dec 17, 2025
e8757ff
Merge branch 'custom-collections' of https://github.com/codepress/adm…
DGStefan Dec 17, 2025
da89460
Update Option.php
DGStefan Dec 17, 2025
ddd2f87
Todo Toggle Option
DGStefan Dec 17, 2025
ae13d78
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 17, 2025
abc2621
Create ToArray.php
DGStefan Dec 17, 2025
ce6d29b
Merge branch 'release/7.0' into custom-collections
DGStefan Dec 19, 2025
692e4d5
toArray
davidmosterd Dec 19, 2025
1173b28
naming and multiple value
davidmosterd Dec 23, 2025
1e108da
separator solve, needs some testing
davidmosterd Dec 23, 2025
3820d30
Update admin.php
DGStefan Jan 6, 2026
f8fe6f6
Message stuff
davidmosterd Jan 8, 2026
cd70898
Merge branch 'custom-collections' of https://github.com/codepress/adm…
davidmosterd Jan 8, 2026
3478b78
update label
davidmosterd Jan 9, 2026
efe9e17
Merge branch 'release/7.0.4' into custom-collections
DGStefan Jan 19, 2026
d84ace3
Fixed Formatters
DGStefan Jan 19, 2026
b13fb57
Merge branch 'release/7.0.5' into custom-collections
davidmosterd Jan 26, 2026
f4e8914
Use FormatterCollection
davidmosterd Jan 26, 2026
b4c5634
Merge branch 'main' into custom-collections
davidmosterd Jan 28, 2026
c1f3743
Merge branch 'release-7.0.x' into custom-collections
davidmosterd Feb 10, 2026
9f46d61
small fixes
davidmosterd Feb 23, 2026
516cb8c
Merge branch 'main' into custom-collections
davidmosterd Feb 23, 2026
81b38eb
return type
davidmosterd Mar 6, 2026
314d694
Metric Setting and header toggle
DGStefan Mar 10, 2026
2ecf419
Merge branch 'release/7.0.12' into feature/calculations
DGStefan Mar 11, 2026
9f4a441
Update NPM Config to more WordPRess min requirement levels
DGStefan Mar 11, 2026
b8cb2ac
declare strict_types
tobiasschutter Mar 12, 2026
cd5f4eb
phpstan bug fixes
tobiasschutter Mar 12, 2026
50eb1a1
fix strict_types pitfalls
tobiasschutter Mar 12, 2026
8c0aecb
Update UserFactory.php
DGStefan Mar 16, 2026
428b729
Working Flow for settings
DGStefan Mar 16, 2026
487e143
Update PreferenceSection.svelte
DGStefan Mar 17, 2026
5475ce9
Create .gitattributes
DGStefan Mar 18, 2026
b64fe3f
Optimise frontend build pipeline and UI barrel exports
DGStefan Mar 18, 2026
63a929d
Build files
DGStefan Mar 18, 2026
d64f2dd
Better Types and CSS updates
DGStefan Mar 18, 2026
a68adfe
Table and Cell refactoring
DGStefan Mar 18, 2026
a1c4fca
Update .gitignore
DGStefan Mar 23, 2026
a66afbf
Merge branch 'release/7.1' into feature/frontend-optimization
DGStefan Mar 24, 2026
3f9f7ec
Merge branch 'release/7.0.13' into release/7.1
DGStefan Mar 24, 2026
6c9592b
Delete AddonAvailable.php
DGStefan Mar 24, 2026
e572893
Pro logo
DGStefan Mar 24, 2026
5642d3d
Build
DGStefan Mar 25, 2026
00ef956
Use Pro logo as SVG
DGStefan Mar 25, 2026
c9e4074
Delete pro.png
DGStefan Mar 25, 2026
3c7de27
Merge branch 'release/7.0.13' into release/7.1
DGStefan Mar 27, 2026
1e1a1fa
asset fixes
DGStefan Mar 27, 2026
eb00c2d
Merge branch 'release/7.0.13' into release/7.1
DGStefan Mar 27, 2026
5f475b6
Update setup-git.sh
DGStefan Mar 27, 2026
5729815
WIP
DGStefan Mar 27, 2026
6365ad1
Better Type hinting
DGStefan Mar 27, 2026
90b3b96
Merge branch 'release/7.0.13' into release/7.1
DGStefan Mar 30, 2026
c2ab98b
Table Cell service
DGStefan Mar 30, 2026
32b7621
Expose Svelte runtime as window.__AC_SVELTE for cross-bundle sharing
DGStefan Mar 31, 2026
9e0941c
Update TotalItemsTrait.php
DGStefan Mar 31, 2026
12d5d55
Strict type issue
DGStefan Mar 31, 2026
890eb46
TODO
davidmosterd Apr 4, 2026
1006334
Merge branch 'release/7.1' into custom-collections
davidmosterd Apr 4, 2026
4ee3321
Merge pull request #457 from codepress/custom-collections
DGStefan Apr 7, 2026
6bd3d69
Update DateConfigurator.php
DGStefan Apr 7, 2026
08c810c
Add IdCollectionFromArrayOrString formatter
DGStefan Apr 7, 2026
3605331
Fix IdCollectionFromArrayOrString: use named constructor, remove TODO
DGStefan Apr 7, 2026
739af05
Fix IdCollectionFromArrayOrString: PHP 7.4 compat, null safety
DGStefan Apr 7, 2026
6a7c896
Add add_final_formatter support to FieldTypeFactoryBuilder and FieldT…
DGStefan Apr 7, 2026
038ae3e
Fix FieldTypeFactory constructor: append final_formatter_configs at end
DGStefan Apr 7, 2026
09f7bc4
Fix TextConfigurator type, update ImageConfigurator with NumberOfItem…
DGStefan Apr 7, 2026
ad82e3b
Delete IdCollectionFromArrayOrString.php
DGStefan Apr 7, 2026
65e7c81
Corrected Wrong namespace imports
DGStefan Apr 7, 2026
151f5dd
Delete FieldTypeBasic.php
DGStefan Apr 7, 2026
3cbdfff
User List Table render Row fix
DGStefan Apr 10, 2026
f14909d
Merge branch 'main' into release/7.1
DGStefan Apr 14, 2026
d515149
stan thing
davidmosterd Apr 14, 2026
ca1acc3
Merge branch 'release/7.0.17' into release/7.1
DGStefan Apr 17, 2026
caeb3ca
Update container-definitions.php
DGStefan Apr 17, 2026
ba2a050
Merge conflicts
DGStefan Apr 17, 2026
29cec02
New icons
DGStefan Apr 21, 2026
9fdebf1
Strict type fix NumberFormat formatter
DGStefan Apr 24, 2026
3d24090
Update AcModal.svelte
DGStefan Apr 29, 2026
5cae2cc
Merge branch 'main' into release/7.1
DGStefan May 11, 2026
7a82e83
Update DateSaveFormat.php
DGStefan May 11, 2026
92e65e5
Point material-icons package entry points to existing index.ts
DGStefan May 11, 2026
7eca780
Build Assets for 7.1
DGStefan May 13, 2026
699946d
Merge branch 'release/7.0.19' into release/7.1
DGStefan May 19, 2026
40132ca
Removed SVG maps
DGStefan May 19, 2026
81d385d
npm
DGStefan May 19, 2026
d54e9b6
Preparation auto width (#464)
DGStefan May 19, 2026
c96ef42
Update width determination with based on new horizontal handling
DGStefan May 19, 2026
516e48b
build
DGStefan May 20, 2026
92682b8
Update column-size.php
DGStefan May 20, 2026
25e276e
Update IdsToCollection.php
DGStefan May 22, 2026
b96855b
Update codepress-admin-columns.php
tobiasschutter May 22, 2026
489b80c
Action button styling conform WP7
DGStefan May 22, 2026
2f02502
fixes
tobiasschutter May 22, 2026
f41470c
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
tobiasschutter May 22, 2026
e0b5ac7
Update app.php
tobiasschutter May 22, 2026
0970f23
Update codepress-admin-columns.php
tobiasschutter May 22, 2026
260e8c2
fixes
tobiasschutter May 22, 2026
33df5ae
typecast and removed duplication
tobiasschutter May 22, 2026
dcc81d8
Styling to WP7
DGStefan May 22, 2026
591b7cc
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
DGStefan May 22, 2026
205c25a
Get option check
DGStefan May 26, 2026
ce97acb
Hook casting
DGStefan May 27, 2026
ac6a303
User WP Vars
DGStefan May 27, 2026
82cf9bc
Icons
DGStefan May 27, 2026
a117d3e
Merge branch 'main' into release/7.1
DGStefan May 29, 2026
3fadfd2
Better Typescript types
DGStefan May 29, 2026
692eec6
User CustomField context in free Meta column as well
DGStefan Jun 2, 2026
42534a5
New Icon for editing
DGStefan Jun 2, 2026
5489e3d
Building CSS for WP7
DGStefan Jun 2, 2026
a23a386
Fixed add_submenu call
tobiasschutter Jun 3, 2026
6940c61
Broken Date setting
DGStefan Jun 3, 2026
1a5e3fa
Update ac-jquery-ui.scss
DGStefan Jun 4, 2026
5c094f9
Added PHP CS Fixer
tobiasschutter Jun 9, 2026
c336d57
Add .cache to gitignore
tobiasschutter Jun 9, 2026
70641c8
Update rules.php
tobiasschutter Jun 9, 2026
4c28567
Update composer.json
tobiasschutter Jun 9, 2026
c05e590
Code styling: PHP CS Fixer updated the code styling for the entire co…
tobiasschutter Jun 9, 2026
eeaff33
Update rules (fully psr-12 compatible)
tobiasschutter Jun 9, 2026
5ab600f
Lint PHP in NPM Build script
DGStefan Jun 9, 2026
a4df6af
Add php-cs-fixer pre-commit hook and CI workflow
tobiasschutter Jun 9, 2026
f5f3c0f
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
tobiasschutter Jun 9, 2026
93ce55b
Fixed total items formatted bug
DGStefan Jun 12, 2026
58b3e8d
Update changelog.txt
DGStefan Jun 12, 2026
9b2eca9
Metric icon changed
DGStefan Jun 12, 2026
1917c76
Update changelog.txt
DGStefan Jun 12, 2026
0fbe7d8
languages
DGStefan Jun 12, 2026
7d20b2c
syntax + hardened collections + return type comments + strict type + …
davidmosterd Jun 17, 2026
e998321
Todo ans PHP code fixer
DGStefan Jun 17, 2026
01622ef
code styling
tobiasschutter Jun 17, 2026
d6cdf53
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
tobiasschutter Jun 17, 2026
5c07d18
Wip
DGStefan Jun 17, 2026
756a60b
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
DGStefan Jun 17, 2026
0b6cd34
fixed type error
DGStefan Jun 19, 2026
b13aab7
Set correct path for images in view
DGStefan Jun 22, 2026
f916d60
Update Posts.php
tobiasschutter Jun 22, 2026
1cd527a
Update Strings.php
tobiasschutter Jun 22, 2026
4c7433a
Made Helper\Date deprecated and added WpDateFormat
tobiasschutter Jun 22, 2026
7b0fc89
typo
tobiasschutter Jun 22, 2026
d7d5073
Added FileSize type
tobiasschutter Jun 22, 2026
af9fd80
Removed Media helper
tobiasschutter Jun 22, 2026
161f76c
Removed stars method from HTML helper
tobiasschutter Jun 22, 2026
cef79ff
Bump required WP version
tobiasschutter Jun 22, 2026
286fb81
Update changelog.txt
tobiasschutter Jun 22, 2026
008a621
Added Link type for the helper
tobiasschutter Jun 22, 2026
05d9d8e
Better intention for constructor param
DGStefan Jun 22, 2026
161eaa0
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
DGStefan Jun 22, 2026
f5e3649
Added with_tooltip method
tobiasschutter Jun 22, 2026
bda528d
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
tobiasschutter Jun 22, 2026
508dee3
Version Bump
DGStefan Jun 22, 2026
0717fcf
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
DGStefan Jun 22, 2026
930c708
Obsolete 3rd argument for tooltip helper method
tobiasschutter Jun 22, 2026
75eba73
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
tobiasschutter Jun 22, 2026
a66c3c6
Renamed get_style_attributes_as_string to get_inline_styles in the he…
tobiasschutter Jun 22, 2026
be82115
renamed to divided (implode html helper)
tobiasschutter Jun 22, 2026
7e09987
Update Html.php
tobiasschutter Jun 22, 2026
712befe
better list screen from request and JSON respons handling
davidmosterd Jun 22, 2026
edbfbce
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
davidmosterd Jun 22, 2026
f1b91b7
Added DashIcon type (with icon helper facade)
tobiasschutter Jun 22, 2026
8c5dac3
example on new immutable JSON response style
davidmosterd Jun 22, 2026
4da8582
typo
davidmosterd Jun 23, 2026
5c067ec
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
davidmosterd Jun 23, 2026
8fbacb6
todo new helper
davidmosterd Jun 23, 2026
0da25d4
1 more todo
davidmosterd Jun 23, 2026
af06182
Image helper refactor
tobiasschutter Jun 23, 2026
5368250
Image helper refactor: slim orchestrator and move URL parsing to Strings
tobiasschutter Jun 23, 2026
bcbc553
Update Image.php
tobiasschutter Jun 23, 2026
3aa556c
menu
tobiasschutter Jun 23, 2026
0574dfd
Strings helper
tobiasschutter Jun 23, 2026
5681659
Helpers
tobiasschutter Jun 23, 2026
27e75f5
Helpers
tobiasschutter Jun 23, 2026
9aa2fda
Update Post.php
tobiasschutter Jun 23, 2026
50fffb5
Named exception + Language update
DGStefan Jun 23, 2026
8866da8
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
DGStefan Jun 23, 2026
bda6767
Html helper
tobiasschutter Jun 23, 2026
e82dd1d
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
tobiasschutter Jun 23, 2026
1a59bad
Release/7.1 phpstan errors (#468)
tobiasschutter Jun 24, 2026
4eb813a
changelog
DGStefan Jun 29, 2026
6296c26
pot
DGStefan Jun 29, 2026
b8267c5
Update tailwind.config.js
tobiasschutter Jun 29, 2026
cf5c36a
Tailwind build for link color
DGStefan Jun 29, 2026
22bfb31
small stan fixes
davidmosterd Jun 30, 2026
181e603
Code Style
DGStefan Jun 30, 2026
bf8afb9
fixes stan
davidmosterd Jun 30, 2026
c957816
Merge branch 'release/7.1' of https://github.com/codepress/admin-colu…
davidmosterd Jun 30, 2026
52ec1cb
Styling
DGStefan Jun 30, 2026
0c43c84
Merge branch 'main' into release/7.1
DGStefan Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

# Free core assets
assets/js/*.js merge=ours-assets
assets/css/*.css merge=ours-assets
assets/css/*.css merge=ours-assets
16 changes: 16 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Coding Standards
on:
pull_request:
push:
branches: [master, main]
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- run: composer run cs:install # installs the isolated fixer under tools/php-cs-fixer
- run: composer run cs:check # dry-run + diff; non-zero exit fails the job
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ Thumbs.d*
node_modules
bower_components
vendor
.php-cs-fixer.cache
18 changes: 18 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

$root = __DIR__;

// Recursive targets
$finder = PhpCsFixer\Finder::create()
->files()
->name('*.php')
->in($root . '/classes')
->append([
$root . '/api.php',
$root . '/codepress-admin-columns.php',
]);

return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules(require $root . '/settings/php-cs-fixer/rules.php')
->setFinder($finder);
62 changes: 21 additions & 41 deletions api.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use AC\Column;
use AC\Exception\HookTimingException;
use AC\ListScreen;
Expand All @@ -22,20 +24,20 @@
* @method AC()
*/

if ( ! function_exists('ac_get_list_screen')) {
if (! function_exists('ac_get_list_screen')) {
/**
* Return the list table configuration, such as its ID, columns, and settings.
* For usage @see https://docs.admincolumns.com/article/57-code-snippets
*/
function ac_get_list_screen(string $id): ?ListScreen
{
if ( ! did_action('wp_loaded')) {
if (! did_action('wp_loaded')) {
throw HookTimingException::called_too_early('wp_loaded');
}

$storage = Registry::get(Storage::class);

if ( ! $storage instanceof Storage) {
if (! $storage instanceof Storage) {
return null;
}

Expand All @@ -47,20 +49,20 @@ function ac_get_list_screen(string $id): ?ListScreen
}
}

if ( ! function_exists('ac_get_list_screens')) {
if (! function_exists('ac_get_list_screens')) {
/**
* Returns a collection of all list table configurations for a specific table.
* For usage @see https://docs.admincolumns.com/article/57-code-snippets
*/
function ac_get_list_screens(string $table_id): ListScreenCollection
{
if ( ! did_action('wp_loaded')) {
if (! did_action('wp_loaded')) {
throw HookTimingException::called_too_early('wp_loaded');
}

$storage = Registry::get(Storage::class);

if ( ! $storage instanceof Storage) {
if (! $storage instanceof Storage) {
return new ListScreenCollection();
}

Expand All @@ -72,20 +74,20 @@ function ac_get_list_screens(string $table_id): ListScreenCollection
}
}

if ( ! function_exists('ac_get_column')) {
if (! function_exists('ac_get_column')) {
/**
* Returns a single column by its name and list screen ID.
* For usage @see https://docs.admincolumns.com/article/57-code-snippets
*/
function ac_get_column(string $column_name, string $list_screen_id): ?Column
{
if ( ! did_action('wp_loaded')) {
if (! did_action('wp_loaded')) {
throw HookTimingException::called_too_early('wp_loaded');
}

$storage = Registry::get(Storage::class);

if ( ! $storage instanceof Storage) {
if (! $storage instanceof Storage) {
return null;
}

Expand All @@ -95,7 +97,7 @@ function ac_get_column(string $column_name, string $list_screen_id): ?Column
return null;
}

if ( ! $list_screen) {
if (! $list_screen) {
return null;
}

Expand All @@ -107,21 +109,21 @@ function ac_get_column(string $column_name, string $list_screen_id): ?Column
}
}

if ( ! function_exists('ac_get_columns')) {
if (! function_exists('ac_get_columns')) {
/**
* Returns all columns for a specific list table.
* For usage @see https://docs.admincolumns.com/article/57-code-snippets
* @return Column[]
*/
function ac_get_columns(string $list_screen_id): array
{
if ( ! did_action('wp_loaded')) {
if (! did_action('wp_loaded')) {
throw HookTimingException::called_too_early('wp_loaded');
}

$storage = Registry::get(Storage::class);

if ( ! $storage instanceof Storage) {
if (! $storage instanceof Storage) {
return [];
}

Expand All @@ -131,15 +133,15 @@ function ac_get_columns(string $list_screen_id): array
return [];
}

if ( ! $list_screen) {
if (! $list_screen) {
return [];
}

return iterator_to_array($list_screen->get_columns());
}
}

if ( ! function_exists('AC')) {
if (! function_exists('AC')) {
/**
* returns thw AC\AdminColumn object. Contains the plugin version and directory path.
*/
Expand All @@ -155,7 +157,7 @@ function AC(): AC\AdminColumns
}
}

if ( ! function_exists('ac_is_pro_active')) {
if (! function_exists('ac_is_pro_active')) {
function ac_is_pro_active(): bool
{
return defined('ACP_VERSION');
Expand Down Expand Up @@ -213,14 +215,14 @@ function ac_get_url(string $relative_file_path): string
return '';
}

if ( ! function_exists('ac_load_columns')) {
if (! function_exists('ac_load_columns')) {
function ac_load_columns(): void
{
_deprecated_function(__METHOD__, '4.1');
}
}

if ( ! function_exists('ac_helper')) {
if (! function_exists('ac_helper')) {
/**
* @deprecated 7.0.10 Use Helper\X::create() instead.
*/
Expand All @@ -232,33 +234,11 @@ function ac_helper(): AC\Helper
}
}

if ( ! function_exists('ac_format_date')) {
if (! function_exists('ac_format_date')) {
function ac_format_date(string $format, ?int $timestamp = null, ?DateTimeZone $timezone = null): ?string
{
_deprecated_function(__METHOD__, '7.0.10', 'wp_date()');

return wp_date($format, $timestamp, $timezone ?? new DateTimeZone('UTC')) ?: null;
}
}






















2 changes: 1 addition & 1 deletion assets/css/admin-general.css

Large diffs are not rendered by default.

Loading
Loading