DJABHipHop
Forum Replies Created
-
@qriouslad Thanks for adding this toggle.
Forum: Plugins
In reply to: [Advanced Comment Form] add options to toggle blogrollRong Post please ignore
Forum: Plugins
In reply to: [Advanced Comment Form] Add options Remove “WordPress” from admin titlesWrong plug-in please ignore
@qriouslad You can’t disable the custom order once
'hierarchical'
is set tofalse
, &'page-attributes'
is no longer in the'supports'
since Content Order module settings relay on
'hierarchical'
is set totrue
, &'page-attributes'
being'supported'
by the CPT
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] Remove comments@florin88 Not needed, just enabling Admin Menu Organizer witch will allow you to hide comment page
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] add function to disable Thumbnail sizeI agree
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] add function to disable Thumbnail sizeI agree this should be and options as well
Also when enabling custom ordering for a CPT that has
'hierarchical' => true
or'supports' => ['page-attributes']
, everything works as expected initially. However, if the CPT is later updated to'hierarchical' => false
&'page-attributes'
is removed from the'supports'
array, the custom ordering functionality (e.g., the “Order” sub-menu) still persists.This seems to happen because the plugin doesn’t re-check the current post type registration parameters after they are changed. Ideally, the plugin should verify these attributes dynamically during each admin load or when the post type is registered.
Suggested Fix:
Add logic to ensure that the custom ordering feature is automatically disabled whenever:'hierarchical'
is set tofalse
, &'page-attributes'
is no longer in the'supports'
array.
The “Order” sub-menu and related functionality should only be displayed when these criteria are met. This change would make the plugin’s behavior consistent with the current post type settings.
Let me know if additional examples or debugging information are needed!
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] Replacement of protected XLSX files@badg0003 it works for me on my dev environment, maybe your XLSX files exceeding the wp file upload size
- This reply was modified 3 months, 2 weeks ago by DJABHipHop.
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] Make File Size and Post columns sortableHere the update code that include pages as well
/**
* Make specific columns sortable in the media library.
*/
function asenha_make_columns_sortable($sortable_columns) {
$sortable_columns['asenha-file-size'] = 'asenha-file-size';
$sortable_columns['asenha-media-ext'] = 'asenha-media-ext';
$sortable_columns['asenha-id'] = 'asenha-id';
return $sortable_columns;
}
add_filter('manage_upload_sortable_columns', 'asenha_make_columns_sortable');
add_filter('manage_edit-post_sortable_columns', 'asenha_make_columns_sortable');
add_filter('manage_edit-page_sortable_columns', 'asenha_make_columns_sortable');
/**
* Handle sorting by file size, extension, and ID.
*/
function asenha_sort_columns_sortable($query) {
if (!is_admin() || !$query->is_main_query()) {
return;
}
$orderby = $query->get('orderby');
$order = $query->get('order');
if ($orderby === 'asenha-file-size') {
$query->set('order', $order === 'asc' ? 'ASC' : 'DESC');
}
if ($orderby === 'asenha-id') {
$query->set('order', $order === 'asc' ? 'ASC' : 'DESC');
}
if ($orderby === 'asenha-media-ext') {
$query->set('order', $order === 'asc' ? 'ASC' : 'DESC');
}
}
add_action('pre_get_posts', 'asenha_sort_columns_sortable');WordPress 6.7.1 running Tetris theme.
Akismet has protected your site from 11 spam comments already.
There’s nothing in your spam queue at the moment.@qriouslad actually your wrong the WordPress version number running themename theme. is part of the at a glance dashboard widget can we get the options to remove
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] Fix Layout On Mobile Devices@qriouslad I found the fix thats works 100%
the max-width either 1146px or 1161px use witch ever value work best@media (max-width: 1161px) {
.asenha-header {
height: 150px;
flex-direction: column;
}
}
@media (max-width: 782px) {
.wrap.asenha {
margin: 0;
}
.asenha-body,
.asenha-settings,
.asenha-footer {
width: 100%;
}
}
@media (max-width: 550px) {
.asenha-header {
height: auto;
flex-direction: column;
}
.asenha-header-right {
flex-direction: column;
}
}- This reply was modified 4 months, 1 week ago by DJABHipHop.
- This reply was modified 4 months, 1 week ago by DJABHipHop.
Forum: Plugins
In reply to: [Admin and Site Enhancements (ASE)] Prevent WordPress from compressing images🙏🙏🙏🙏Please aloe this in the free version🙏🙏🙏🙏🙏
add_filter(‘login_display_language_dropdown’, ‘__return_false’);