How do I add CSS options to my plugin without using inline styles?

Use wp_register_style and wp_enqueue_style to add the stylesheet. DO NOT simply add a stylesheet link to wp_head. Queuing styles allows other plugins or themes to modify the stylesheet if necessary. Your stylesheet can be a .php file: wp_register_style(‘myStyleSheet’, ‘my-stylesheet.php’); wp_enqueue_style( ‘myStyleSheet’); my-stylesheet.php would look like this: <?php // We’ll be outputting CSS header(‘Content-type: text/css’); include(‘my-plugin-data.php’); … Read more

Add multiple custom fields to the general settings page

Well the second bit of code is technically the correct way to do it. However, at the end of the add_settings_field() you can pass arguments. Please view the WordPress Add_Settings_Field function reference. This will help you in getting the best understanding of how the add_settings_field() function really works. Now, with that said, you could use … Read more

framework for plugin/theme options panel? [closed]

OK so found some more: JeffreyWay / WordPress-Theme-Options-Page – open source class the project is hosted on github aimed at theme developers, looks nice, haven’t used it. (link dead) . devinsays / Options-Framework – open source Framework the project is hosted on github aimed at theme developers , i later learned that is has evolved … Read more

Are transients garbage collected?

They now are Starting with WordPress 3.7 expired transients are deleted on database upgrades, see #20316 Old answer If someone can’t show me otherwise it seems that transients are not garbage collected after all. What makes it worse is that unlike options they are not guaranteed to be stored in database. So there is no … Read more

GCC -fPIC option

Position Independent Code means that the generated machine code is not dependent on being located at a specific address in order to work. E.g. jumps would be generated as relative rather than absolute. Pseudo-assembly: PIC: This would work whether the code was at address 100 or 1000 Non-PIC: This will only work if the code … Read more