wpsf / wpsf-dev Goto Github PK
View Code? Open in Web Editor NEWClone Of CodeStar but with more powerfull and reliable
Clone Of CodeStar but with more powerfull and reliable
This framework lacks two important functions.
wpsf_get_option ()
and wpsf_set_option ()
Here they are:
if ( ! function_exists( 'wpsf_get_option' ) ) {
/**
* Get option.
*
* @param string $option_name
* @param string $default
* @return mixed|string|null
*/
function wpsf_get_option( $option_name = '', $default = '' ) {
$options = apply_filters( 'wpsf_get_option', get_option( WPSF_OPTION ) );
if ( ! empty( $option_name ) && ! empty( $options[ $option_name ] ) ) {
return $options[ $option_name ];
} else {
return ( ! empty( $default ) ) ? $default : null;
}
}
}
if ( ! function_exists( 'wpff_set_option' ) ) {
/**
* Set option.
*
* @param string $option_name
* @param string $new_value
* @return void
*/
function wpsf_set_option( $option_name = '', $new_value = '' ) {
$options = get_option( WPSF_OPTION );
if ( ! empty( $option_name ) && ! empty( $options[ $option_name ] ) ) {
$options[ $option_name ] = $new_value;
update_option( WPSF_OPTION, $options );
}
}
}
Put this function in functions/helpers.php
Select2 not working in shortcode manager
Ref : http://s.svarun.in/kc
Sorry...my mistake
As the title suggests, the "Add Shortcode" button in the textarea section of the "WPSF Modern" control panel does not work.
I think it would be a very useful function. Is it possible to give us an eye and maybe a fix?
A thousand thanks.
Hi good fork !!
Does it support multiple instance and visual composer ?
can't declare an array in taxonomy
'dependency' => array( 'footer-left-side|footer-right-side', 'OR|OR', 'custom|custom' ),
How to enable theme light color, there is this option?
Nested group element value is not saved properly and at first click first accordion child group returns more then one accordion which is equal to parent accordion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.