Changeset 3301082
- Timestamp:
- 05/27/2025 02:55:22 AM (10 months ago)
- Location:
- solid-dynamics
- Files:
-
- 10 added
- 2 deleted
- 10 edited
- 1 copied
-
tags/1.9.0 (copied) (copied from solid-dynamics/trunk)
-
tags/1.9.0/admin-pages (added)
-
tags/1.9.0/admin-pages/custom-css-usage.php (added)
-
tags/1.9.0/admin-pages/widget-usage.php (added)
-
tags/1.9.0/classes/display-condition-solid-dynamics-macro.php (added)
-
tags/1.9.0/classes/elementor-display-conditions.php (added)
-
tags/1.9.0/classes/post-field.php (modified) (1 diff)
-
tags/1.9.0/readme.txt (modified) (4 diffs)
-
tags/1.9.0/settings/settings-fields.php (modified) (1 diff)
-
tags/1.9.0/settings/settings.php (modified) (2 diffs)
-
tags/1.9.0/solid-dynamics.php (modified) (3 diffs)
-
tags/1.9.0/widget-usage (deleted)
-
trunk/admin-pages (added)
-
trunk/admin-pages/custom-css-usage.php (added)
-
trunk/admin-pages/widget-usage.php (added)
-
trunk/classes/display-condition-solid-dynamics-macro.php (added)
-
trunk/classes/elementor-display-conditions.php (added)
-
trunk/classes/post-field.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/settings/settings-fields.php (modified) (1 diff)
-
trunk/settings/settings.php (modified) (2 diffs)
-
trunk/solid-dynamics.php (modified) (3 diffs)
-
trunk/widget-usage (deleted)
Legend:
- Unmodified
- Added
- Removed
-
solid-dynamics/tags/1.9.0/classes/post-field.php
r2896065 r3301082 27 27 'fieldname', 28 28 [ 29 'label' => __( ' Callback', 'solid-dynamics' ),29 'label' => __( 'Post Field', 'solid-dynamics' ), 30 30 'type' => \Elementor\Controls_Manager::TEXT, 31 31 ] -
solid-dynamics/tags/1.9.0/readme.txt
r3197610 r3301082 2 2 Contributors: soliddigital,lukechinworth,peterajtai 3 3 Tags: elementor, dynamic tags, jet engine, macros 4 Tested up to: 6. 7.15 Stable tag: 1. 7.04 Tested up to: 6.8.1 5 Stable tag: 1.9.0 6 6 Requires PHP: 7.0 7 7 License: GPLv2 … … 11 11 == Description == 12 12 13 This plugin provides an Admin Page called, "Widget Usage" under the "Solid Dynamics" menu that shows the individual posts in which a widget is used. Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering where those widgets are being used, and "Widget Usage" is the answer to that question. 13 Elementor Widget Usage 14 15 Solid Dynamics provides an Admin Page called, "Widget Usage" under the "Solid Dynamics" menu that shows the individual posts in which a widget is used. Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering where those widgets are being used, and "Widget Usage" is the answer to that question. 16 17 Elementor Custom CSS Info 18 19 A Solid Dynamics Admin Page called, "Custom CSS Usage" shows two types of custom CSS. First, at the top of the page is shown the total lines of custom CSS in the Elementor site settings. Second, in a table below is shown the pages that have widget with custom CSS under the Advanced tab. 20 21 Elementor Dynamic Tags 14 22 15 23 Solid Dynamics also provides several dynamic tags under the "Solid Dynamics" section in Elementor: … … 21 29 - `Post Field`: Retrieves custom post field by name. 22 30 23 This plugin also provides several general use and Elementor specific settings under the menu Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available. 31 Elementor Display Conditions 24 32 25 General: 33 Solid Dynamics also provides several display conditions for Elementor: 34 35 - `Solid Dynamics Macro`: access post or user data, e.g. `post|post_content`, `user|user_email`, or call any function `function|get_current_user_id`. The result is passed to boolval to show the widget. 36 37 Settings 38 39 Solid Dynamics also provides several general use and Elementor specific settings under the menu Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available. 40 41 General Settings: 26 42 27 43 - Disable 404 permalink guessing. 28 44 - Disable the enumeration of users using the rest API. Disables `/wp-json/wp/v2/users` and `/wp-json/wp/v2/users/:ID` 45 - Add a sortable column of registration dates to the Users page 29 46 30 47 Elementor: … … 51 68 52 69 == Changelog == 70 71 = 1.9.0 = 72 2025-05-29 73 Adding information about custom Elementor CSS 74 75 = 1.8.0 = 76 2025-01-19 77 Adding setting to add to the Users page a sortable registration date column 53 78 54 79 = 1.7.0 = -
solid-dynamics/tags/1.9.0/settings/settings-fields.php
r2896065 r3301082 21 21 'title' => 'Disable Users API', 22 22 'desc' => 'Disable the Users REST API: /wp-json/wp/v2/users', 23 'type' => 'checkbox', 24 'default' => 0, 25 ), 26 array( 27 'id' => 'sort_users_by_registration_date', 28 'title' => 'Sort Users by Registration Date', 29 'desc' => 'Adds a column to the Users page that shows a sortable column of registration dates.', 23 30 'type' => 'checkbox', 24 31 'default' => 0, -
solid-dynamics/tags/1.9.0/settings/settings.php
r3195944 r3301082 47 47 if ($settings['general_disable_users_api']) { 48 48 add_filter( 'rest_endpoints', [$this, 'disable_user_endpoint'] ); 49 } 50 51 if ($settings['general_sort_users_by_registration_date']) { 52 // Idea from https://rudrastyh.com/wordpress/sortable-date-user-registered-column.html 53 add_filter( 'manage_users_columns', [$this, 'add_registration_date_column'] ); 54 add_filter( 'manage_users_custom_column', [$this, 'get_registration_date'], 10, 3 ); 55 // Make registration date sortable 56 add_filter( 'manage_users_sortable_columns', [$this,'make_registration_date_sortable'] ); 49 57 } 50 58 … … 113 121 wp_enqueue_style('sd-elementor-subtle-fade-in-entrance-animations', plugin_dir_url(__DIR__) . 'assets/elementor-subtle-fade-in-entrance-animations.css', ['e-animations'], '1.0.0'); 114 122 } 123 124 function add_registration_date_column( $columns ) { 125 $columns[ 'registration_date' ] = 'Registration Date'; 126 return $columns; 127 } 128 129 function get_registration_date( $row_output, $column_id_attr, $user ) { 130 $date_format = 'j M, Y H:i'; 131 if ($column_id_attr == 'registration_date') { 132 $row_output = date( $date_format, strtotime( get_the_author_meta( 'registered', $user ) ) ); 133 } 134 return $row_output; 135 } 136 137 function make_registration_date_sortable( $columns ) { 138 return wp_parse_args( array( 'registration_date' => 'registered' ), $columns ); 139 } 115 140 } -
solid-dynamics/tags/1.9.0/solid-dynamics.php
r3197610 r3301082 4 4 * Plugin Name: Solid Dynamics 5 5 * Description: Helpful utilities for Elementor, Jet Engine, and beyond. 6 * Version: 1. 7.06 * Version: 1.8.0 7 7 * Author: Solid Digital 8 8 * Author URI: https://www.soliddigital.com … … 19 19 } 20 20 21 require_once( __DIR__ . "/classes/elementor-display-conditions.php" ); 22 23 new ElementorDisplayConditions(); 24 21 25 require_once( __DIR__ . "/classes/elementor-dynamic-tags.php" ); 22 26 … … 31 35 new Settings(); 32 36 33 require_once( __DIR__ . "/widget-usage/admin-page.php" ); 37 require_once( __DIR__ . "/admin-pages/widget-usage.php" ); 38 require_once( __DIR__ . "/admin-pages/custom-css-usage.php" ); -
solid-dynamics/trunk/classes/post-field.php
r2896065 r3301082 27 27 'fieldname', 28 28 [ 29 'label' => __( ' Callback', 'solid-dynamics' ),29 'label' => __( 'Post Field', 'solid-dynamics' ), 30 30 'type' => \Elementor\Controls_Manager::TEXT, 31 31 ] -
solid-dynamics/trunk/readme.txt
r3197610 r3301082 2 2 Contributors: soliddigital,lukechinworth,peterajtai 3 3 Tags: elementor, dynamic tags, jet engine, macros 4 Tested up to: 6. 7.15 Stable tag: 1. 7.04 Tested up to: 6.8.1 5 Stable tag: 1.9.0 6 6 Requires PHP: 7.0 7 7 License: GPLv2 … … 11 11 == Description == 12 12 13 This plugin provides an Admin Page called, "Widget Usage" under the "Solid Dynamics" menu that shows the individual posts in which a widget is used. Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering where those widgets are being used, and "Widget Usage" is the answer to that question. 13 Elementor Widget Usage 14 15 Solid Dynamics provides an Admin Page called, "Widget Usage" under the "Solid Dynamics" menu that shows the individual posts in which a widget is used. Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering where those widgets are being used, and "Widget Usage" is the answer to that question. 16 17 Elementor Custom CSS Info 18 19 A Solid Dynamics Admin Page called, "Custom CSS Usage" shows two types of custom CSS. First, at the top of the page is shown the total lines of custom CSS in the Elementor site settings. Second, in a table below is shown the pages that have widget with custom CSS under the Advanced tab. 20 21 Elementor Dynamic Tags 14 22 15 23 Solid Dynamics also provides several dynamic tags under the "Solid Dynamics" section in Elementor: … … 21 29 - `Post Field`: Retrieves custom post field by name. 22 30 23 This plugin also provides several general use and Elementor specific settings under the menu Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available. 31 Elementor Display Conditions 24 32 25 General: 33 Solid Dynamics also provides several display conditions for Elementor: 34 35 - `Solid Dynamics Macro`: access post or user data, e.g. `post|post_content`, `user|user_email`, or call any function `function|get_current_user_id`. The result is passed to boolval to show the widget. 36 37 Settings 38 39 Solid Dynamics also provides several general use and Elementor specific settings under the menu Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available. 40 41 General Settings: 26 42 27 43 - Disable 404 permalink guessing. 28 44 - Disable the enumeration of users using the rest API. Disables `/wp-json/wp/v2/users` and `/wp-json/wp/v2/users/:ID` 45 - Add a sortable column of registration dates to the Users page 29 46 30 47 Elementor: … … 51 68 52 69 == Changelog == 70 71 = 1.9.0 = 72 2025-05-29 73 Adding information about custom Elementor CSS 74 75 = 1.8.0 = 76 2025-01-19 77 Adding setting to add to the Users page a sortable registration date column 53 78 54 79 = 1.7.0 = -
solid-dynamics/trunk/settings/settings-fields.php
r2896065 r3301082 21 21 'title' => 'Disable Users API', 22 22 'desc' => 'Disable the Users REST API: /wp-json/wp/v2/users', 23 'type' => 'checkbox', 24 'default' => 0, 25 ), 26 array( 27 'id' => 'sort_users_by_registration_date', 28 'title' => 'Sort Users by Registration Date', 29 'desc' => 'Adds a column to the Users page that shows a sortable column of registration dates.', 23 30 'type' => 'checkbox', 24 31 'default' => 0, -
solid-dynamics/trunk/settings/settings.php
r3195944 r3301082 47 47 if ($settings['general_disable_users_api']) { 48 48 add_filter( 'rest_endpoints', [$this, 'disable_user_endpoint'] ); 49 } 50 51 if ($settings['general_sort_users_by_registration_date']) { 52 // Idea from https://rudrastyh.com/wordpress/sortable-date-user-registered-column.html 53 add_filter( 'manage_users_columns', [$this, 'add_registration_date_column'] ); 54 add_filter( 'manage_users_custom_column', [$this, 'get_registration_date'], 10, 3 ); 55 // Make registration date sortable 56 add_filter( 'manage_users_sortable_columns', [$this,'make_registration_date_sortable'] ); 49 57 } 50 58 … … 113 121 wp_enqueue_style('sd-elementor-subtle-fade-in-entrance-animations', plugin_dir_url(__DIR__) . 'assets/elementor-subtle-fade-in-entrance-animations.css', ['e-animations'], '1.0.0'); 114 122 } 123 124 function add_registration_date_column( $columns ) { 125 $columns[ 'registration_date' ] = 'Registration Date'; 126 return $columns; 127 } 128 129 function get_registration_date( $row_output, $column_id_attr, $user ) { 130 $date_format = 'j M, Y H:i'; 131 if ($column_id_attr == 'registration_date') { 132 $row_output = date( $date_format, strtotime( get_the_author_meta( 'registered', $user ) ) ); 133 } 134 return $row_output; 135 } 136 137 function make_registration_date_sortable( $columns ) { 138 return wp_parse_args( array( 'registration_date' => 'registered' ), $columns ); 139 } 115 140 } -
solid-dynamics/trunk/solid-dynamics.php
r3197610 r3301082 4 4 * Plugin Name: Solid Dynamics 5 5 * Description: Helpful utilities for Elementor, Jet Engine, and beyond. 6 * Version: 1. 7.06 * Version: 1.8.0 7 7 * Author: Solid Digital 8 8 * Author URI: https://www.soliddigital.com … … 19 19 } 20 20 21 require_once( __DIR__ . "/classes/elementor-display-conditions.php" ); 22 23 new ElementorDisplayConditions(); 24 21 25 require_once( __DIR__ . "/classes/elementor-dynamic-tags.php" ); 22 26 … … 31 35 new Settings(); 32 36 33 require_once( __DIR__ . "/widget-usage/admin-page.php" ); 37 require_once( __DIR__ . "/admin-pages/widget-usage.php" ); 38 require_once( __DIR__ . "/admin-pages/custom-css-usage.php" );
Note: See TracChangeset
for help on using the changeset viewer.