Forum Replies Created
-
AuthorPosts
-
NabilMemberData anonymization has been defined as a “process by which personal data is irreversibly altered in such a way that a data subject can no longer be identified directly or indirectly
– Wikipedia
Is this what you want?
NabilMemberI’m satisfied with this workaround:
<?php // File: parts/meta-boxes/my-metabox.php /** * Title: {{ My Metabox }} * Post Type: my_cpt */ piklist( 'field', [ 'type' => 'file', 'field' => '_thumbnail_id', 'scope' => 'post_meta', 'options' => [ 'title' => __( 'Set featured image(s)', 'my_textdomain' ), 'button' => __( 'Set featured image(s)', 'my_textdomain' ), ], ] ); /** * Localize Title */ add_action('piklist_pre_render_meta_box', function() { ob_start(); } ); add_action('piklist_post_render_meta_box', function() { echo str_replace( '{{ My Metabox }}', __( 'My Metabox', 'my_textdomain' ), ob_get_clean() ); } );
NabilMemberSomething like this
Index: trunk/includes/class-piklist-universal-widget.php =================================================================== --- trunk/includes/class-piklist-universal-widget.php (revision 1399025) +++ trunk/includes/class-piklist-universal-widget.php (working copy) @@ -45,7 +45,7 @@ public $widgets_path = ''; /** - * Piklist_Universal_Widget + * __construct * Create a new universal widget. * * @param string $name The name. @@ -57,7 +57,7 @@ * @static * @since 1.0 */ - public function Piklist_Universal_Widget($name, $title, $description, $path = array(), $control_options = array()) + public function __construct($name, $title, $description, $path = array(), $control_options = array()) { global $pagenow;
NabilMember@Jason, I’m using trunk.
I would guess changing the method name from
Piklist_Universal_Widgetto__constuctwould fix that.
NabilMemberYes found it! I did my research first but missed it. Thanks @Steve.
NabilMemberThis bug it still present
Thanks,
Nabil
NabilMemberAwesome, I completely missed it.
Thanks.
NabilMember@Marcus,
Have you been able to use multiple conditions?
Thanks,
Nabil
NabilMemberThank you !
NabilMemberWorks great, Thanks.
NabilMemberNow that you mention it, yes, I’m using Firefox.
I checked and it works on Google Chrome and Chromium but it doesn’t work on Firefox & Opera, I don’t know for IE, the project is on a local Linux machine.
NabilMemberOh, I’m using version 0.8.0b6
I found that by setting
sortabletofalseinwp-content/plugins/picklist/parts/js/piklist.js:277, I can access the field with a mouse click, although the description is now beside the first field and not below the fields.
-
AuthorPosts